Revision 1799a969
Added by Chris Buechler about 9 years ago
src/usr/local/www/status.php | ||
---|---|---|
107 | 107 |
$line = fgets($fd); |
108 | 108 |
/* remove sensitive contents */ |
109 | 109 |
$line = preg_replace("/<authorizedkeys>.*?<\\/authorizedkeys>/", "<authorizedkeys>xxxxx</authorizedkeys>", $line); |
110 |
$line = preg_replace("/<secret>.*?<\\/secret>/", "<secret>xxxxx</secret>", $line); |
|
110 | 111 |
$line = preg_replace("/<bcrypt-hash>.*?<\\/bcrypt-hash>/", "<bcrypt-hash>xxxxx</bcrypt-hash>", $line); |
111 | 112 |
$line = preg_replace("/<password>.*?<\\/password>/", "<password>xxxxx</password>", $line); |
112 | 113 |
$line = preg_replace("/<auth_user>.*?<\\/auth_user>/", "<auth_user>xxxxx</auth_user>", $line); |
Also available in: Unified diff
Omit <secret> tags from L2TP in status.php config.xml dump.