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-07-26 18:02:58 +0300
committerMichal Čihař <michal@cihar.com>2016-07-26 18:04:26 +0300
commitc90967071a3f43c7b53315c2595277748c1b4bed (patch)
tree1d2c15f039b100cc77774ba1fc1d9c5494ab42ac /user_password.php
parentcc9d0f128ca51afb49f453d9327c851bcbe07f19 (diff)
Do not allow to set too long password
We do not accept password longer than 256 chars, so do not accept it on password change as well. Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/user_password.php b/user_password.php
index 6404623695..a68f3a8e4e 100644
--- a/user_password.php
+++ b/user_password.php
@@ -120,6 +120,9 @@ function PMA_setChangePasswordMsg()
__('The passwords aren\'t the same!')
);
$error = true;
+ } elseif (strlen($_REQUEST['pma_pw']) > 256) {
+ $message = PMA_Message::error(__('Password is too long!'));
+ $error = true;
}
}
return array('error' => $error, 'msg' => $message);