Make PHPCS happy

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
Hugues Peccatte 2015-08-27 15:54:22 +02:00
parent be11ed4a34
commit acde1ebb33

View File

@ -4909,10 +4909,10 @@ function PMA_getSqlQueriesForDisplayAndAddUser($username, $hostname, $password)
// and therefore has to be escaped using an extra '%'
$escapedHostname = $hostname;
$escapedUsername = $username;
if (strpos($hostname,'%') !== false) {
if (strpos($hostname, '%') !== false) {
$escapedHostname = str_replace('%', '%%', $hostname);
}
if (strpos($username,'%') !== false) {
if (strpos($username, '%') !== false) {
$escapedUsername = str_replace('%', '%%', $username);
}
$slashedEscapedUsername = PMA_Util::sqlAddSlashes($escapedUsername);