mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Mail: Validate mail subject and body
This commit is contained in:
@@ -97,6 +97,9 @@ void WorldSession::HandleSendMail(WorldPacket& recvData)
|
||||
if (receiverName.empty())
|
||||
return;
|
||||
|
||||
if (!ValidateHyperlinksAndMaybeKick(subject) || !ValidateHyperlinksAndMaybeKick(body))
|
||||
return;
|
||||
|
||||
Player* player = _player;
|
||||
|
||||
if (player->GetLevel() < sWorld->getIntConfig(CONFIG_MAIL_LEVEL_REQ))
|
||||
|
||||
Reference in New Issue
Block a user