From ca55aae520c6d888be9f7dc0b6312b4ea919f510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 9 Jul 2003 10:06:16 +0000 Subject: [PATCH] one more fix for backslash in username --- libraries/auth/cookie.auth.lib.php3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/auth/cookie.auth.lib.php3 b/libraries/auth/cookie.auth.lib.php3 index 15428e582..5d7691732 100644 --- a/libraries/auth/cookie.auth.lib.php3 +++ b/libraries/auth/cookie.auth.lib.php3 @@ -166,6 +166,9 @@ function PMA_blowfish_decrypt($data, $secret) { else if (!empty($HTTP_COOKIE_VARS) && isset($HTTP_COOKIE_VARS['pma_cookie_username'])) { $default_user = $HTTP_COOKIE_VARS['pma_cookie_username']; } + if (isset($default_user) && get_magic_quotes_gpc()) { + $default_user = stripslashes($default_user); + } $autocomplete = ''; } else {