Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 3b7208ad85d1ca14903eb66d84b49f0f > files > 4

phpmyadmin-4.4.15.10-2.mga5.src.rpm

--- libraries/common.inc.php.orig	2017-03-31 19:29:29.272464800 +0200
+++ libraries/common.inc.php	2017-03-31 19:30:35.553865459 +0200
@@ -858,7 +858,7 @@
                 . ' ' . $cfg['Server']['auth_type']
             );
         }
-        if (isset($_REQUEST['pma_password'])) {
+        if (isset($_REQUEST['pma_password']) && strlen($_REQUEST['pma_password']) > 256) {
             $_REQUEST['pma_password'] = substr($_REQUEST['pma_password'], 0, 256);
         }
         include_once  './libraries/plugins/auth/' . $auth_class . '.class.php';