Add missing PMA_sqlAddslashes to $initial parameter
Security risk is low since a valid token is required to use this.
This commit is contained in:
@@ -117,8 +117,8 @@ function PMA_RangeOfUsers($initial = '')
|
||||
// strtolower() is used because the User field
|
||||
// might be BINARY, so LIKE would be case sensitive
|
||||
if (!empty($initial)) {
|
||||
$ret = " WHERE `User` LIKE '" . $initial . "%'"
|
||||
. " OR `User` LIKE '" . strtolower($initial) . "%'";
|
||||
$ret = " WHERE `User` LIKE '" . PMA_sqlAddslashes($initial) . "%'"
|
||||
. " OR `User` LIKE '" . PMA_sqlAddslashes(strtolower($initial)) . "%'";
|
||||
} else {
|
||||
$ret = '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user