From 11b0c087c0167cfb5a215c839d99086bbdee925b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 15 Oct 2002 20:48:32 +0000 Subject: [PATCH] allow blank password --- libraries/auth/cookie.auth.lib.php3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/auth/cookie.auth.lib.php3 b/libraries/auth/cookie.auth.lib.php3 index 91b9d96cc1..bb15691ce4 100644 --- a/libraries/auth/cookie.auth.lib.php3 +++ b/libraries/auth/cookie.auth.lib.php3 @@ -325,6 +325,9 @@ if (uname.value == '') { else { $from_cookie = FALSE; } + if ($PHP_AUTH_PW == "\xff(blank)") { + $PHP_AUTH_PW = ''; + } } // Returns whether we get authentication settings or not @@ -389,7 +392,7 @@ if (uname.value == '') { $GLOBALS['is_https']); // Duration = till the browser is closed for password setcookie('pma_cookie_password', - $cfg['Server']['password'], + (!empty($cfg['Server']['password'])) ? $cfg['Server']['password'] : "\xff(blank)", 0, $GLOBALS['cookie_path'], '', $GLOBALS['is_https']); -- 2.11.4.GIT