From 6176862f98749e15524e02ccaa705b65c498ceed Mon Sep 17 00:00:00 2001 From: John Forte Date: Fri, 16 Aug 2019 17:15:25 -0400 Subject: [PATCH] Was failing the check if clicking test notifications twice in a row. So it was saving the asterisks and overwriting the current password. --- src/usr/local/www/system_advanced_notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/www/system_advanced_notifications.php b/src/usr/local/www/system_advanced_notifications.php index 3aa94baadf..d74b029b55 100644 --- a/src/usr/local/www/system_advanced_notifications.php +++ b/src/usr/local/www/system_advanced_notifications.php @@ -95,7 +95,7 @@ if ($_POST) { $config['notifications']['smtp']['notifyemailaddress'] = $_POST['smtpnotifyemailaddress']; $config['notifications']['smtp']['username'] = $_POST['smtpusername']; - if ($_POST['smtppassword'] != DMYPWD) { + if (strcmp($_POST['smtppassword'], DMYPWD)!= 0) { if ($_POST['smtppassword'] == $_POST['smtppassword_confirm']) { $config['notifications']['smtp']['password'] = $_POST['smtppassword']; } else {