summaryrefslogtreecommitdiffstats
path: root/usr/local/www/fbegin.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-11-12 12:02:21 -0500
committerjim-p <jimp@pfsense.org>2010-11-12 12:02:44 -0500
commit060d4c5ec0ab239a1535c014f48651996bb59f4b (patch)
tree486586780f862858b1cadbbfa50bd6e27d683145 /usr/local/www/fbegin.inc
parentdd5bf424c155922b065b45e64733bdf8de620c0f (diff)
downloadpfsense-060d4c5ec0ab239a1535c014f48651996bb59f4b.zip
pfsense-060d4c5ec0ab239a1535c014f48651996bb59f4b.tar.gz
More notice XSS fixes.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-xusr/local/www/fbegin.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index b720ca1..0f8a795 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -262,13 +262,13 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') {
$noticemsg = str_replace("<br>", "", $noticemsg);
$extra_args = "";
if($_GET['xml'])
- $extraargs="&xml=" . $_GET['xml'];
+ $extraargs="&xml=" . htmlspecialchars($_GET['xml']);
if($_POST['xml'])
- $extraargs="&xml=" . $_POST['xml'];
+ $extraargs="&xml=" . htmlspecialchars($_POST['xml']);
if($_GET['id'])
- $extraargs="&xml=" . $_GET['id'];
+ $extraargs="&xml=" . htmlspecialchars($_GET['id']);
if($_POST['id'])
- $extraargs="&xml=" . $_POST['id'];
+ $extraargs="&xml=" . htmlspecialchars($_POST['id']);
$notice_msgs = '<a href="?noticeaction=acknowledge&noticeid=all' . $extraargs . '">Acknowledge All</a> &nbsp;&nbsp;&nbsp;&nbsp;.:.&nbsp;&nbsp;&nbsp;&nbsp; ';
if ($value['url']) {
$notice_msgs .= $date.' - <a href="'.$url.'?' . htmlspecialchars($request_string) . '&noticeaction=acknowledge&noticeid='.$key.'">['.$value['id'].']</a>';
OpenPOWER on IntegriCloud