From 52ab0384ca0cf3efac1e8c36c3e05dc17f0c5758 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 31 Oct 2012 14:01:04 -0400 Subject: Encode the if parameter before using it in html --- usr/local/www/guiconfig.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 62521d5..51cb475 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -297,8 +297,8 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { if(stristr($msg, "apply") != false || stristr($msg, "save") != false || stristr($msg, "create") != false) { $savebutton = ""; $savebutton .= ""; - if($_POST['if']) - $savebutton .= ""; + if($_POST['if']) + $savebutton .= ""; $savebutton.=""; } $nifty_redbox = "#990000"; @@ -361,7 +361,7 @@ function print_info_box_np_undo($msg, $name="apply",$value="Apply changes", $und $savebutton .= " "; $savebutton.=""; if($_POST['if']) - $savebutton .= ""; + $savebutton .= ""; } $nifty_redbox = "#990000"; $nifty_blackbox = "#000000"; -- cgit v1.1