From 1a28161d11cd9f6895b362a3297f5f737701c145 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 24 Jul 2013 09:09:53 -0300 Subject: change default limit to all --- config/openbgpd/openbgpd_status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/openbgpd') 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) { -- cgit v1.2.3