Sanitize email subject + body

This commit is contained in:
Gent 2020-11-08 15:37:17 -05:00
parent 5293573116
commit d7a8d2d453

View File

@ -664,8 +664,8 @@ void BuddyManager::emailSend(CNSocket* sock, CNPacketData* data) {
plr->iID, // SenderID plr->iID, // SenderID
U16toU8(plr->PCStyle.szFirstName), // SenderFirstName U16toU8(plr->PCStyle.szFirstName), // SenderFirstName
U16toU8(plr->PCStyle.szLastName), // SenderLastName U16toU8(plr->PCStyle.szLastName), // SenderLastName
U16toU8(pkt->szSubject), // SubjectLine ChatManager::sanitizeText(U16toU8(pkt->szSubject)), // SubjectLine
U16toU8(pkt->szContent), // MsgBody ChatManager::sanitizeText(U16toU8(pkt->szContent)), // MsgBody
pkt->iCash, // Taros pkt->iCash, // Taros
(uint64_t)getTimestamp(), // SendTime (uint64_t)getTimestamp(), // SendTime
0 // DeleteTime (unimplemented) 0 // DeleteTime (unimplemented)