# HG changeset patch # User unc0rr # Date 1541109241 -3600 # Node ID 12bfae554de575f88b1322e84b1ff2add0e3741c # Parent b8df809c62bf3bd6314cf3e09a5fd340a0bd3ea6 Also ban special symbols block diff -r b8df809c62bf -r 12bfae554de5 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