diff options
Diffstat (limited to 'usr/local/www/status.php')
-rwxr-xr-x | usr/local/www/status.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/status.php b/usr/local/www/status.php index 6fa1c6c..1835f8d 100755 --- a/usr/local/www/status.php +++ b/usr/local/www/status.php @@ -22,9 +22,10 @@ function doCmdT($title, $command) { if ($fd) { while (!feof($fd)) { $line = fgets($fd); - /* remove password tag contents */ + /* remove sensitive contents */ $line = preg_replace("/<password>.*?<\\/password>/", "<password>xxxxx</password>", $line); $line = preg_replace("/<pre-shared-key>.*?<\\/pre-shared-key>/", "<pre-shared-key>xxxxx</pre-shared-key>", $line); + $line = preg_replace("/<rocommunity>.*?<\\/rocommunity>/", "<rocommunity>xxxxx</rocommunity>", $line); $line = str_replace("\t", " ", $line); echo htmlspecialchars($line,ENT_NOQUOTES); } |