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:
authorSebastian Mendel <cybot_tm@users.sourceforge.net>2007-10-15 13:20:30 +0400
committerSebastian Mendel <cybot_tm@users.sourceforge.net>2007-10-15 13:20:30 +0400
commitbb7587aabb0100d4eb287309caf80a499cbfc4a1 (patch)
treec4f5bb710723d74924db06419c0a40b55a4c9b16 /server_privileges.php
parentb99b77cb64a398ba562796828950e709cf3e0f0d (diff)
bug #1811519 [privileges] fixed used collation for accessing mysql.user in server privileges
Diffstat (limited to 'server_privileges.php')
-rw-r--r--server_privileges.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/server_privileges.php b/server_privileges.php
index 1d73adc6c7..40513e2d9c 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -749,10 +749,10 @@ if (!empty($adduser_submit) || !empty($change_copy)) {
}
$res = PMA_DBI_query(
'SELECT \'foo\' FROM `mysql`.`user`'
- .' WHERE ' . PMA_convert_using('User')
- .' = ' . PMA_convert_using(PMA_sqlAddslashes($username), 'quoted')
- .' AND ' . PMA_convert_using('Host')
- .' = ' . PMA_convert_using($hostname, 'quoted') . ';',
+ .' WHERE CONVERT(`User` USING utf8) COLLATE utf8_bin '
+ .' = CONVERT(\'' . PMA_sqlAddslashes($username) . '\' USING utf8) COLLATE utf8_bin '
+ .' AND CONVERT(`Host` USING utf8) COLLATE utf8_bin '
+ .' = CONVERT(\'' . PMA_sqlAddslashes($hostname) . '\' USING utf8) COLLATE utf8_bin ;',
null, PMA_DBI_QUERY_STORE);
if (PMA_DBI_num_rows($res) == 1) {
PMA_DBI_free_result($res);