aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-04-07 00:06:59 +0200
committerShauren <shauren.trinity@gmail.com>2021-09-24 23:38:11 +0200
commitd76db70cbf036cae1067552d6d6bcc6d044c38c4 (patch)
tree327744e3d86a713ca2e79286e8ac09ce8ace975d
parent14939204955d1a24fe465cdfcbf307daf3ce4f09 (diff)
Core/Chat: Fixed chat link exploit
Closes #21790 (cherry picked from commit 454bae42c6412161a69dc9de2ee4e5edcbd7ee8c)
-rw-r--r--src/server/game/Chat/ChatLink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/ChatLink.cpp b/src/server/game/Chat/ChatLink.cpp
index 1641e216a95..3e64d71f9f5 100644
--- a/src/server/game/Chat/ChatLink.cpp
+++ b/src/server/game/Chat/ChatLink.cpp
@@ -831,7 +831,7 @@ bool LinkExtractor::IsValidMessage()
break;
char commandChar;
- _iss >> commandChar;
+ _iss.get(commandChar);
// | in normal messages is escaped by ||
if (commandChar != PIPE_CHAR)