summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/bandwidth_by_ip.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-14 16:06:48 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-14 16:06:48 -0500
commitcbb82e6b6ca03d59209ef8f76968249ca390a9a2 (patch)
tree0423a998336ecf21d9542877fa7ada393709bf43 /src/usr/local/www/bandwidth_by_ip.php
parent9f2bbdb44c5700384a37a9586d260492f14f7602 (diff)
downloadpfsense-cbb82e6b6ca03d59209ef8f76968249ca390a9a2.zip
pfsense-cbb82e6b6ca03d59209ef8f76968249ca390a9a2.tar.gz
GET/POST conversions
Diffstat (limited to 'src/usr/local/www/bandwidth_by_ip.php')
-rw-r--r--src/usr/local/www/bandwidth_by_ip.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/bandwidth_by_ip.php b/src/usr/local/www/bandwidth_by_ip.php
index d380322..9259924 100644
--- a/src/usr/local/www/bandwidth_by_ip.php
+++ b/src/usr/local/www/bandwidth_by_ip.php
@@ -27,8 +27,9 @@ require_once('util.inc');
$listedIPs = "";
//get interface IP and break up into an array
-$interface = $_GET['if'];
+$interface = $_REQUEST['if'];
$real_interface = get_real_interface($interface);
+
if (!does_interface_exist($real_interface)) {
echo gettext("Wrong Interface");
return;
@@ -40,7 +41,7 @@ $netmask = find_interface_subnet($real_interface);
$intsubnet = gen_subnet($intip, $netmask) . "/$netmask";
// see if they want local, remote or all IPs returned
-$filter = $_GET['filter'];
+$filter = $_REQUEST['filter'];
if ($filter == "") {
$filter = "local";
@@ -56,7 +57,7 @@ if ($filter == "local") {
}
//get the sort method
-$sort = $_GET['sort'];
+$sort = $_REQUEST['sort'];
if ($sort == "out") {
$sort_method = "-T";
} else {
@@ -64,7 +65,7 @@ if ($sort == "out") {
}
// get the desired format for displaying the host name or IP
-$hostipformat = $_GET['hostipformat'];
+$hostipformat = $_REQUEST['hostipformat'];
$iplookup = array();
// If hostname, description or FQDN is requested then load the locally-known IP address - host/description mappings into an array keyed by IP address.
if ($hostipformat != "") {
OpenPOWER on IntegriCloud