Skip to content

Commit

Permalink
fix(Core/ChatHandler): Prevent messages > 255 characters (azerothcore…
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed May 27, 2020
1 parent 428133d commit 3c5bb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Handlers/ChatHandler.cpp
Expand Up @@ -281,7 +281,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recvData)
stripLineInvisibleChars(msg);

// pussywizard:
if (lang != LANG_ADDON && msg.find("|0") != std::string::npos)
if (msg.length() > 255 || (lang != LANG_ADDON && msg.find("|0") != std::string::npos))
return;

if (!ignoreChecks)
Expand Down

0 comments on commit 3c5bb73

Please sign in to comment.