summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-29 19:49:12 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-29 19:49:12 -0500
commit8d1a6065e111c1244dbc73471cbc7f23177a24eb (patch)
treea5c78b7be7588d12f288a9d909b66938e44dbe69 /src
parenteef555b96aca5039ddefb0988523cef295314218 (diff)
downloadpfsense-8d1a6065e111c1244dbc73471cbc7f23177a24eb.zip
pfsense-8d1a6065e111c1244dbc73471cbc7f23177a24eb.tar.gz
Omit <secret> tags from L2TP in status.php config.xml dump.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/local/www/status.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php
index 5431e54..5ed6fc0 100755
--- a/src/usr/local/www/status.php
+++ b/src/usr/local/www/status.php
@@ -107,6 +107,7 @@ function doCmdT($title, $command) {
$line = fgets($fd);
/* remove sensitive contents */
$line = preg_replace("/<authorizedkeys>.*?<\\/authorizedkeys>/", "<authorizedkeys>xxxxx</authorizedkeys>", $line);
+ $line = preg_replace("/<secret>.*?<\\/secret>/", "<secret>xxxxx</secret>", $line);
$line = preg_replace("/<bcrypt-hash>.*?<\\/bcrypt-hash>/", "<bcrypt-hash>xxxxx</bcrypt-hash>", $line);
$line = preg_replace("/<password>.*?<\\/password>/", "<password>xxxxx</password>", $line);
$line = preg_replace("/<auth_user>.*?<\\/auth_user>/", "<auth_user>xxxxx</auth_user>", $line);
OpenPOWER on IntegriCloud