diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-28 16:59:54 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-28 16:59:54 -0500 |
commit | 76d6d92535ad26d2b951a433658d5de62c62a15f (patch) | |
tree | f281570f1c8acc7d6a7db326efedf36130eae98c /src/usr/local/www/interfaces_ppps_edit.php | |
parent | c8b10b4ce59161e21a93786d04237ad3f330178a (diff) | |
download | pfsense-76d6d92535ad26d2b951a433658d5de62c62a15f.zip pfsense-76d6d92535ad26d2b951a433658d5de62c62a15f.tar.gz |
FInished password hiding logic by ensuring $_POST['password'] != DMYPWD before updating
Diffstat (limited to 'src/usr/local/www/interfaces_ppps_edit.php')
-rw-r--r-- | src/usr/local/www/interfaces_ppps_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php index d8d19af..1522963 100644 --- a/src/usr/local/www/interfaces_ppps_edit.php +++ b/src/usr/local/www/interfaces_ppps_edit.php @@ -323,7 +323,9 @@ if ($_POST) { $ppp['if'] = $ppp['type'].$ppp['ptpid']; $ppp['ports'] = implode(',', $_POST['interfaces']); $ppp['username'] = $_POST['username']; - $ppp['password'] = base64_encode($_POST['passwordfld']); + if ($_POST['passwordfld'] != DMYPWD) { + $ppp['password'] = base64_encode($_POST['passwordfld']); + } $ppp['ondemand'] = $_POST['ondemand'] ? true : false; if (!empty($_POST['idletimeout'])) { $ppp['idletimeout'] = $_POST['idletimeout']; |