mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Command: Sanitize input for .account set gmlevel <username> handling
(cherry picked from commit 79696e0871)
Conflicts:
src/server/scripts/Commands/cs_account.cpp
This commit is contained in:
@@ -666,7 +666,7 @@ public:
|
||||
if (isAccountNameGiven)
|
||||
{
|
||||
targetAccountName = arg1;
|
||||
if (!Utf8ToUpperOnlyLatin(targetAccountName))
|
||||
if (!Utf8ToUpperOnlyLatin(targetAccountName) || !AccountMgr::GetId(targetAccountName))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_ACCOUNT_NOT_EXIST, targetAccountName.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in New Issue
Block a user