Skip to content

Commit b544020

Browse files
committed
Security: apply attr_on_filter when send message by social network
1 parent 2c32fde commit b544020

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/inc/ajax/message.ajax.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
$subject = isset($_REQUEST['subject']) ? trim($_REQUEST['subject']) : null;
4949
$messageContent = isset($_REQUEST['content']) ? trim($_REQUEST['content']) : null;
50+
$messageContent = attr_on_filter($messageContent);
5051

5152
if (empty($subject) || empty($messageContent)) {
5253
echo Display::return_message(get_lang('ErrorSendingMessage'), 'error');

0 commit comments

Comments
 (0)