From ccfc8fe3769d808632c308c84c12363964dbfed9 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 4 Dec 2001 18:42:18 +0000 Subject: [PATCH] auth and strRunning --- ChangeLog | 1 + libraries/common.lib.php3 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 68048f844..a092abec1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ $Source$ 2001-12-04 Marc Delisle * Documentation.html: FAQ about Konqueror + * libraries/common.lib.php3, support new $strRunning string 2001-12-03 Loïc Chapeaux * tbl_select.php3: fixed bugs with text and time type fields. diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index ece8cbe17..6cc082c90 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -69,7 +69,8 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){ */ function PMA_auth() { - header('WWW-Authenticate: Basic realm="phpMyAdmin ' . trim($GLOBALS['strRunning']) . ' ' . $GLOBALS['cfgServer']['host'] . '"'); +// header('WWW-Authenticate: Basic realm="phpMyAdmin ' . trim($GLOBALS['strRunning']) . ' ' . $GLOBALS['cfgServer']['host'] . '"'); + header('WWW-Authenticate: Basic realm="phpMyAdmin ' . sprintf($GLOBALS['strRunning'], (empty($GLOBALS['cfgServer']['verbose']) ? str_replace('\'', '\\\'',$GLOBALS['cfgServer']['host']) : str_replace('\'', '\\\'', $GLOBALS['cfgServer']['verbose']))) . '"'); header('HTTP/1.0 401 Unauthorized'); header('status: 401 Unauthorized'); ?>