fixed bug #458160 - Advanced auth fails on WebSite Pro, thanks to Matthias Fichtner

This commit is contained in:
Loïc Chapeaux
2001-09-03 23:18:08 +00:00
parent 1546f12c54
commit f734fdbf74
2 changed files with 19 additions and 2 deletions

View File

@@ -10,8 +10,11 @@ $Source$
Michal Cihar <nijel at users.sourceforge.net>.
* lang/brazilian_portuguese.inc.php3: updated thanks to
Renato Lins <TheBest at Information4u.com>.
* lib.inc.php3: fixed bug #458009 - Database list with advanced auth.,
thanks to an anonymous contributor.
* lib.inc.php3:
- fixed bug #458009 - Database list with advanced auth., thanks to
an anonymous contributor;
- fixed bug #458160 - Advanced auth fails on WebSite Pro, thanks to
Matthias Fichtner <mfichtner at users.sourceforge.net>.
* db_readdump.php3, lines 101-104: removed non alphabetic characters from
the beginning of the sql query submitted.

View File

@@ -259,6 +259,13 @@ if (!defined('__LIB_INC__')){
else if (@getenv('REMOTE_USER')) {
$PHP_AUTH_USER = getenv('REMOTE_USER');
}
// Fix from Matthias Fichtner for WebSite Professional - Part 1
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['AUTH_USER'])) {
$PHP_AUTH_USER = $HTTP_ENV_VARS['AUTH_USER'];
}
else if (@getenv('AUTH_USER')) {
$PHP_AUTH_USER = getenv('AUTH_USER');
}
}
// Grabs the $PHP_AUTH_PW variable whatever are the values of the
// 'register_globals' and the 'variables_order' directives
@@ -275,6 +282,13 @@ if (!defined('__LIB_INC__')){
else if (@getenv('REMOTE_PASSWORD')) {
$PHP_AUTH_PW = getenv('REMOTE_PASSWORD');
}
// Fix from Matthias Fichtner for WebSite Professional - Part 2
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['AUTH_PASSWORD'])) {
$PHP_AUTH_USER = $HTTP_ENV_VARS['AUTH_PASSWORD'];
}
else if (@getenv('AUTH_PASSWORD')) {
$PHP_AUTH_USER = getenv('AUTH_PASSWORD');
}
}
// Grabs the $old_usr variable whatever are the values of the
// 'register_globals' and the 'variables_order' directives