aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd_status.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/openbgpd/openbgpd_status.php')
-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) {