summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-09-10 14:35:39 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-09-10 14:35:39 -0600
commit3a134b5369ea8fb5f429f5ce63391affef770bc2 (patch)
tree02b7800eee4f9ee846a91326cec483c88141903f
parent61ba386b8bb36ebcc93f1dd51914270f5904fef8 (diff)
downloadpfsense-3a134b5369ea8fb5f429f5ce63391affef770bc2.zip
pfsense-3a134b5369ea8fb5f429f5ce63391affef770bc2.tar.gz
Fix regular expression to allow 10 for ping count.
-rwxr-xr-xusr/local/www/diag_ping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php
index 4d00598..0bbc7d5 100755
--- a/usr/local/www/diag_ping.php
+++ b/usr/local/www/diag_ping.php
@@ -64,8 +64,8 @@ if ($_POST || $_REQUEST['host']) {
$host = $_REQUEST['host'];
$interface = $_REQUEST['interface'];
$count = $_POST['count'];
- if (!preg_match('/^[0-9]{1}$/', $count) )
- $count = DEFAULT_COUNT;
+ if (preg_match('/[^0-9]/', $count) )
+ $count = DEFAULT_COUNT;
}
}
if (!isset($do_ping)) {
OpenPOWER on IntegriCloud