diff options
author | Michal Čihař <michal@cihar.com> | 2016-08-17 16:38:22 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-08-17 16:38:22 +0300 |
commit | 23e01d306ac1c0cd9a2cb916d6c1e0b4256efecb (patch) | |
tree | 0a141a7038c26aa115c6abf6e35b0a1f0005aad9 /user_password.php | |
parent | 07985b5ef2c726d090607585cf5f92b39061b6a4 (diff) | |
parent | 7898060916b7b9d82ef35d73117228c7246f510a (diff) |
Merge branch 'QA_4_6'
Diffstat (limited to 'user_password.php')
-rw-r--r-- | user_password.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_password.php b/user_password.php index 0afe22d348..ac9c3f7d81 100644 --- a/user_password.php +++ b/user_password.php @@ -113,10 +113,10 @@ function PMA_setChangePasswordMsg() $message = PMA\libraries\Message::success(__('The profile has been updated.')); if (($_REQUEST['nopass'] != '1')) { - if (empty($_REQUEST['pma_pw']) || empty($_REQUEST['pma_pw2'])) { + if (strlen($_REQUEST['pma_pw']) === 0 || strlen($_REQUEST['pma_pw2']) === 0) { $message = PMA\libraries\Message::error(__('The password is empty!')); $error = true; - } elseif ($_REQUEST['pma_pw'] != $_REQUEST['pma_pw2']) { + } elseif ($_REQUEST['pma_pw'] !== $_REQUEST['pma_pw2']) { $message = PMA\libraries\Message::error( __('The passwords aren\'t the same!') ); |