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:
click
2015-04-07 06:12:37 +02:00
committed by DDuarte
parent 8bb8737565
commit 1282db53e3

View File

@@ -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);