aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-24 09:09:53 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-24 09:09:53 -0300
commit1a28161d11cd9f6895b362a3297f5f737701c145 (patch)
treeb83aff3f4a6e804172ed975e2ef125ff7f3de60e /config
parent38ff9dece412adeadc345e23d00c833c509dc4a3 (diff)
downloadpfsense-packages-1a28161d11cd9f6895b362a3297f5f737701c145.tar.gz
pfsense-packages-1a28161d11cd9f6895b362a3297f5f737701c145.tar.bz2
pfsense-packages-1a28161d11cd9f6895b362a3297f5f737701c145.zip
change default limit to all
Diffstat (limited to 'config')
-rw-r--r--config/openbgpd/openbgpd_status.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php
index 2460ea7f..6570213d 100644
--- a/config/openbgpd/openbgpd_status.php
+++ b/config/openbgpd/openbgpd_status.php
@@ -54,7 +54,7 @@ else
include("head.inc");
-function doCmdT($command, $limit = 0, $filter = "") {
+function doCmdT($command, $limit = "all", $filter = "") {
$grepline = "";
if (!empty($filter))
$grepline = " | grep " . escapeshellarg(htmlspecialchars($filter));
@@ -64,7 +64,7 @@ function doCmdT($command, $limit = 0, $filter = "") {
$cl = 0;
$result = "";
while (($line = fgets($fd)) !== FALSE) {
- if ($limit > 0 && $cl >= $limit)
+ if (is_numeric($limit) && $limit > 0 && $cl >= $limit)
break;
$result .= htmlspecialchars($line, ENT_NOQUOTES);
if ($ct++ > 1000) {