Revision 1557716b
Added by Jim Pingle about 10 years ago
usr/local/www/status.php | ||
---|---|---|
70 | 70 |
$line = preg_replace("/<pre-shared-key>.*?<\\/pre-shared-key>/", "<pre-shared-key>xxxxx</pre-shared-key>", $line); |
71 | 71 |
$line = preg_replace("/<rocommunity>.*?<\\/rocommunity>/", "<rocommunity>xxxxx</rocommunity>", $line); |
72 | 72 |
$line = preg_replace("/<prv>.*?<\\/prv>/", "<prv>xxxxx</prv>", $line); |
73 |
$line = preg_replace("/<shared_key>.*?<\\/shared_key>/", "<shared_key>xxxxx</shared_key>", $line); |
|
74 |
$line = preg_replace("/<tls>.*?<\\/tls>/", "<tls>xxxxx</tls>", $line); |
|
73 | 75 |
$line = preg_replace("/<ipsecpsk>.*?<\\/ipsecpsk>/", "<ipsecpsk>xxxxx</ipsecpsk>", $line); |
74 | 76 |
$line = preg_replace("/<md5-hash>.*?<\\/md5-hash>/", "<md5-hash>xxxxx</md5-hash>", $line); |
75 | 77 |
$line = preg_replace("/<md5password>.*?<\\/md5password>/", "<md5password>xxxxx</md5password>", $line); |
Also available in: Unified diff
Also sanitize OpenVPN static/tls keys in status.php