Project

General

Profile

« Previous | Next » 

Revision f8e730bb

Added by Chris Buechler about 9 years ago

Remove bcrypt-hash from status.php config dump. Noticed by Denny Page

View differences:

src/usr/local/www/status.php
106 106
			while (!feof($fd)) {
107 107
				$line = fgets($fd);
108 108
				/* remove sensitive contents */
109
				$line = preg_replace("/<bcrypt-hash>.*?</bcrypt-hash>/", "<bcrypt-hash>xxxxx</bcrypt-hash>", $line);
109 110
				$line = preg_replace("/<password>.*?<\\/password>/", "<password>xxxxx</password>", $line);
110 111
				$line = preg_replace("/<pre-shared-key>.*?<\\/pre-shared-key>/", "<pre-shared-key>xxxxx</pre-shared-key>", $line);
111 112
				$line = preg_replace("/<rocommunity>.*?<\\/rocommunity>/", "<rocommunity>xxxxx</rocommunity>", $line);

Also available in: Unified diff