Also ban special symbols block
authorunc0rr
Thu, 01 Nov 2018 22:54:01 +0100
changeset 14069 12bfae554de5
parent 14068 b8df809c62bf
child 14070 aa586aadd91f
Also ban special symbols block
gameServer/Utils.hs
--- a/gameServer/Utils.hs	Thu Nov 01 20:29:42 2018 +0100
+++ b/gameServer/Utils.hs	Thu Nov 01 22:54:01 2018 +0100
@@ -79,7 +79,7 @@
 illegalName b = B.null b || length s > 40 || all isSpace s || isSpace (head s) || isSpace (last s) || any isIllegalChar s
     where
         s = UTF8.toString b
-        isIllegalChar c = c `List.elem` ("$()*+?[]^{|}\x7F" ++ ['\x00'..'\x1F'])
+        isIllegalChar c = c `List.elem` ("$()*+?[]^{|}\x7F" ++ ['\x00'..'\x1F'] ++ ['\xFFF0'..'\xFFFF'])
 
 protoNumber2ver :: Word16 -> B.ByteString
 protoNumber2ver v = Map.findWithDefault "Unknown" v vermap