From 40f41d737bb9f7df71c6260b766756ba8a2ea1fc Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 20 六月 2024 21:14:13 +0800 Subject: [PATCH] Merge branch 'hyyngame' of http://192.168.1.20:10010/r/SnxxServerCode into hyyngame --- ServerPython/CoreServerGroup/GameServer/Script/Player/DirtyList.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/DirtyList.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/DirtyList.py index 1603f97..2f49c82 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/DirtyList.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/DirtyList.py @@ -31,13 +31,18 @@ if not EncodingToUnicode(inputText): return True + if "\xe3\x85\xa4" in inputText: + GameWorld.Log("存在非法空白填充符!") + return True + #屏蔽转义字符 for char in ShareDefine.Def_List_EscapeSequence: if char in inputText: return True readStrings = ReadChConfig.GetChConfig('DirtyList') - forbiddenText = readStrings.split("\n") + readStringsEx = ReadChConfig.GetChConfig('DirtyName') + forbiddenText = readStrings.split("\n") + readStringsEx.split("\n") for i, eachLine in enumerate(forbiddenText): if len(eachLine) == 0: -- Gitblit v1.8.0