`--- index.php 2018-04-24 15:12:36.000000000 -0300` `+++ index.php.orig 2018-01-08 16:53:19.000000000 -0300` `@@ -565,11 +565,8 @@` ` }` ` }` ` }` `-/*` `-* if ($fp = @popen('echo n | '.$_CONFIG['plink'].' '.implode(' ', $params).' '.$exec, 'r'))` `-*/` ` ` `- if ($fp = @popen($_CONFIG['plink'].' '.implode(' ', $params).' 0>&1 '.$exec, 'r'))` `+ if ($fp = @popen('echo n | '.$_CONFIG['plink'].' '.implode(' ', $params).' '.$exec, 'r'))` ` {` ` while (!feof($fp))` ` {` `@@ -1454,7 +1450,7 @@` ` if (preg_match("/^show ip bgp n\w*\s+([\d\.]+)/i", $exec) OR` ` preg_match("/^show ip bgp n\w*$/i", $exec))` ` {` `- if (!isset($lastip) AND preg_match("/^BGP neighbor is ([\d\.]+)(,?)/", $output, $lastip_exp))` `+ if (!isset($lastip) AND preg_match("/^BGP neighbor is ([\d\.]+),/", $output, $lastip_exp))` ` {` ` $lastip = $lastip_exp[1];` ` }` `@@ -1518,7 +1514,7 @@` ` $output` ` );` ` $output = preg_replace_callback(` `- "/^(BGP neighbor is )(\d+\.\d+\.\d+\.\d+)(,?)/",` `+ "/^(BGP neighbor is )(\d+\.\d+\.\d+\.\d+)(,)/",` ` function ($matches) {` ` return $matches[1].link_whois($matches[2]).$matches[3];` ` },`