Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-08-17 16:38:22 +0300
committerMichal Čihař <michal@cihar.com>2016-08-17 16:38:22 +0300
commit23e01d306ac1c0cd9a2cb916d6c1e0b4256efecb (patch)
tree0a141a7038c26aa115c6abf6e35b0a1f0005aad9 /user_password.php
parent07985b5ef2c726d090607585cf5f92b39061b6a4 (diff)
parent7898060916b7b9d82ef35d73117228c7246f510a (diff)
Merge branch 'QA_4_6'
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php4
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!')
);