diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-08-03 17:42:00 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-08-03 17:42:00 -0400 |
commit | b000f96faa31e538d8ca4420fa25b58b8f37aff4 (patch) | |
tree | 0192fb6f15d14e3e8c83622b2d41ee2ff1729054 /usr/local/www/pkg.php | |
parent | bc05ef9f97b8222b30b0127ad6077f3cc26faf3e (diff) | |
download | pfsense-b000f96faa31e538d8ca4420fa25b58b8f37aff4.zip pfsense-b000f96faa31e538d8ca4420fa25b58b8f37aff4.tar.gz |
Use GET instead of post for filtering
Diffstat (limited to 'usr/local/www/pkg.php')
-rwxr-xr-x | usr/local/www/pkg.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php index 15ec44f..dfaeb27 100755 --- a/usr/local/www/pkg.php +++ b/usr/local/www/pkg.php @@ -49,13 +49,15 @@ $xml = htmlspecialchars($_REQUEST['xml']); if($xml == "") { print_info_box_np(gettext("ERROR: No package defined.")); - die; + exit; } else { - $pkg = parse_xml_config_pkg("/usr/local/pkg/" . $xml, "packagegui"); + if(file_exists("/usr/local/pkg/" . $xml)) + $pkg = parse_xml_config_pkg("/usr/local/pkg/" . $xml, "packagegui"); } if($pkg['donotsave'] <> "") { - header("Location: pkg_edit.php?xml=" . $xml); + Header("Location: pkg_edit.php?xml=" . $xml); + exit; } if ($pkg['include_file'] != "") { @@ -118,7 +120,7 @@ include("head.inc"); <?php include("fbegin.inc"); ?> -<form action="pkg.php" name='pkgform' method="post"> +<form action="pkg.php" method="get"> <input type='hidden' name='xml' value='<?=$_REQUEST['xml']?>'> <? if($_GET['savemsg'] <> "") $savemsg = htmlspecialchars($_GET['savemsg']); ?> <?php if ($savemsg) print_info_box($savemsg); ?> @@ -343,5 +345,10 @@ NiftyCheck(); Rounded("div#mainarea","bl br","#FFF","#eeeeee","smooth"); </script> +<?php + echo "<!-- filter_fieldname: {$filter_fieldname} -->"; + echo "<!-- filter_regex: {$filter_regex} -->"; +?> + </body> </html> |