From 5e1cfe9ec5b8a8db54510432ab70acf7aa16c76c Mon Sep 17 00:00:00 2001 From: heper Date: Wed, 11 Nov 2015 00:35:32 +0100 Subject: fix Bug #5400 --- src/usr/local/www/diag_ping.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www') 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; } -- cgit v1.1