From 72099d9ef1f8e9c0427545023eb592afc0037c69 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 23 四月 2025 16:36:56 +0800 Subject: [PATCH] 10367 【越南】【英语】【BT】【砍树】仙盟攻城战-服务端(优化进出战斗场景、城池数据同步;) --- 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