diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-06-29 19:49:12 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-29 19:49:45 -0500 |
commit | 5f37baed48714b0d5b58b784d8887f02a3900edb (patch) | |
tree | c42b18a00a0fb753541e7daa1da5eee8c0d75347 | |
parent | c6060e225b3f5d7009f0f0f9c81cb96f724d3b98 (diff) | |
download | pfsense-5f37baed48714b0d5b58b784d8887f02a3900edb.zip pfsense-5f37baed48714b0d5b58b784d8887f02a3900edb.tar.gz |
Omit <secret> tags from L2TP in status.php config.xml dump.
-rwxr-xr-x | src/usr/local/www/status.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php index e2708c4..abc120c 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("/<pre-shared-key>.*?<\\/pre-shared-key>/", "<pre-shared-key>xxxxx</pre-shared-key>", $line); |