mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-5691-Vulnerabilidad-XSS-en-sistema-de-mensajes' into 'develop'
fix cross-site scripting vulnerability See merge request artica/pandorafms!3156
This commit is contained in:
commit
254a32be22
@ -127,17 +127,7 @@ if ($read_message) {
|
|||||||
).' '.$user_name;
|
).' '.$user_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
$order = [
|
$parsed_message = nl2br(htmlspecialchars(trim(io_safe_output($row['message']))));
|
||||||
"\r\n",
|
|
||||||
"\n",
|
|
||||||
"\r",
|
|
||||||
];
|
|
||||||
$replace = '<br />';
|
|
||||||
$parsed_message = str_replace(
|
|
||||||
$order,
|
|
||||||
$replace,
|
|
||||||
trim(io_safe_output($row['message']))
|
|
||||||
);
|
|
||||||
|
|
||||||
echo '<div class="container">';
|
echo '<div class="container">';
|
||||||
echo ' <p>'.$parsed_message.'</p>';
|
echo ' <p>'.$parsed_message.'</p>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user