mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
fix cross-site scripting vulnerability
This commit is contained in:
parent
987d8f4c75
commit
268e317ca3
@ -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