Merge pull request #11615 from devenbansod/fix_11605_2

Fix issue 11605 - new
This commit is contained in:
Marc Delisle 2015-10-28 08:43:01 -04:00
commit 9fb7b9828d

View File

@ -3952,10 +3952,18 @@ function PMA_getDataForChangeOrCopyUser()
if (PMA_Util::getServerType() == 'MySQL'
&& PMA_MYSQL_INT_VERSION >= 50606
&& PMA_MYSQL_INT_VERSION < 50706
&& isset($password)
&& ((isset($authentication_string)
&& empty($password))
|| (isset($plugin)
&& $plugin == 'sha256_password'))
) {
$password = $authentication_string;
}
if (PMA_Util::getServerType() == 'MariaDB'
&& PMA_MYSQL_INT_VERSION >= 50500
&& isset($authentication_string)
&& empty($password)
&& isset($plugin)
&& $plugin == 'sha256_password'
) {
$password = $authentication_string;
}