summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorheper <heper@users.noreply.github.com>2015-11-11 00:35:32 +0100
committerheper <heper@users.noreply.github.com>2015-11-11 00:35:32 +0100
commit5e1cfe9ec5b8a8db54510432ab70acf7aa16c76c (patch)
tree6ed655064591044532a8facf30af95fab1fb43a3 /src/usr
parent3eeb82dc97a29353c00f359de01604eb6558670e (diff)
downloadpfsense-5e1cfe9ec5b8a8db54510432ab70acf7aa16c76c.zip
pfsense-5e1cfe9ec5b8a8db54510432ab70acf7aa16c76c.tar.gz
fix Bug #5400
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/diag_ping.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_ping.php b/src/usr/local/www/diag_ping.php
index 8727019..11a596f 100644
--- a/src/usr/local/www/diag_ping.php
+++ b/src/usr/local/www/diag_ping.php
@@ -112,8 +112,10 @@ if ($_POST || $_REQUEST['host']) {
if (!$input_errors) {
$do_ping = true;
- $sourceip = $_REQUEST['sourceip'];
- $count = $_POST['count'];
+ if(isset($_REQUEST['sourceip'])) {
+ $sourceip = $_REQUEST['sourceip'];
+ }
+ $count = $_REQUEST['count'];
if (preg_match('/[^0-9]/', $count)) {
$count = DEFAULT_COUNT;
}
OpenPOWER on IntegriCloud