summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-14 16:31:05 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-14 16:31:05 -0500
commit8d58ebae67880814c4ae602cd5313892927b1f3c (patch)
tree2b6f12cd28e2ad88a9f859f2b21675b8f819a681 /src/usr/local/www/pkg_edit.php
parent33ebc875126ef9a0de3670e47d21b13a883e8ab0 (diff)
downloadpfsense-8d58ebae67880814c4ae602cd5313892927b1f3c.zip
pfsense-8d58ebae67880814c4ae602cd5313892927b1f3c.tar.gz
GET/POST conversion
Diffstat (limited to 'src/usr/local/www/pkg_edit.php')
-rw-r--r--src/usr/local/www/pkg_edit.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php
index d98b976..559645b 100644
--- a/src/usr/local/www/pkg_edit.php
+++ b/src/usr/local/www/pkg_edit.php
@@ -39,10 +39,7 @@ function pfSenseHeader($location) {
header("Location: " . $location);
}
-$xml = htmlspecialchars($_GET['xml']);
-if ($_POST['xml']) {
- $xml = htmlspecialchars($_POST['xml']);
-}
+$xml = htmlspecialchars($_REQUEST['xml']);
$xml_fullpath = realpath('/usr/local/pkg/' . $xml);
@@ -67,7 +64,7 @@ if (!isset($pkg['adddeleteeditpagefields'])) {
$only_edit = false;
}
-$id = $_GET['id'];
+$id = $_REQUEST['id'];
if (isset($_POST['id'])) {
$id = htmlspecialchars($_POST['id']);
}
@@ -101,8 +98,8 @@ if ($config['installedpackages'] &&
$a_pkg = &$config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'];
-if ($_GET['savemsg'] != "") {
- $savemsg = htmlspecialchars($_GET['savemsg']);
+if ($_REQUEST['savemsg'] != "") {
+ $savemsg = htmlspecialchars($_REQUEST['savemsg']);
}
if ($pkg['custom_php_command_before_form'] != "") {
OpenPOWER on IntegriCloud