mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Store notices safely to prevent potential XSS when notices are displayed locally or by remote systems where they're shipped. Ticket #6154
This commit is contained in:
parent
4458ed6b5d
commit
7801279148
@ -90,11 +90,11 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority =
|
||||
}
|
||||
$queuekey = time();
|
||||
$toqueue = array(
|
||||
'id' => $id,
|
||||
'notice' => $notice,
|
||||
'url' => $url,
|
||||
'category' => $category,
|
||||
'priority' => $priority,
|
||||
'id' => htmlentities($id),
|
||||
'notice' => htmlentities($notice),
|
||||
'url' => htmlentities($url),
|
||||
'category' => htmlentities($category),
|
||||
'priority' => htmlentities($priority),
|
||||
);
|
||||
while (isset($queue[$queuekey])) {
|
||||
$queuekey++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user