aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd_status.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-04-05 09:51:23 -0400
committerjim-p <jimp@pfsense.org>2013-04-05 09:51:52 -0400
commitb5bf49e168925bbb901471de3e389b6d8cb2ad5c (patch)
treecdd0cf2e1e2becb413d90db1a629ee180ff14ccd /config/openbgpd/openbgpd_status.php
parent28b66f44f99edb51b258e4080259bdb39a839f2d (diff)
downloadpfsense-packages-b5bf49e168925bbb901471de3e389b6d8cb2ad5c.tar.gz
pfsense-packages-b5bf49e168925bbb901471de3e389b6d8cb2ad5c.tar.bz2
pfsense-packages-b5bf49e168925bbb901471de3e389b6d8cb2ad5c.zip
Flush output buffer while running bgp status commands to avoid a php crash
Diffstat (limited to 'config/openbgpd/openbgpd_status.php')
-rw-r--r--config/openbgpd/openbgpd_status.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php
index 3db2781a..e6f69d07 100644
--- a/config/openbgpd/openbgpd_status.php
+++ b/config/openbgpd/openbgpd_status.php
@@ -62,6 +62,7 @@ function doCmdT($title, $command) {
$fd = popen("{$command} 2>&1", "r");
while (($line = fgets($fd)) !== FALSE) {
echo htmlspecialchars($line, ENT_NOQUOTES);
+ ob_flush();
}
pclose($fd);
}