diff options
| author | Nils Adermann <naderman@naderman.de> | 2008-06-04 16:05:49 +0000 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2008-06-04 16:05:49 +0000 |
| commit | e08a400b9f504373541725b93aed6f0270a8caa6 (patch) | |
| tree | a87771abc4b95ed2440e73f7704bb63c20319b66 /phpBB/includes/auth | |
| parent | a11f41986f64916fe38f887ced2b6102ef8cf5d1 (diff) | |
| download | forums-e08a400b9f504373541725b93aed6f0270a8caa6.tar forums-e08a400b9f504373541725b93aed6f0270a8caa6.tar.gz forums-e08a400b9f504373541725b93aed6f0270a8caa6.tar.bz2 forums-e08a400b9f504373541725b93aed6f0270a8caa6.tar.xz forums-e08a400b9f504373541725b93aed6f0270a8caa6.zip | |
HTTP Authentication supports UTF-8 usernames now [Bug #21135]
git-svn-id: file:///svn/phpbb/trunk@8603 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth')
| -rw-r--r-- | phpBB/includes/auth/auth_apache.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php index c57a06a46d..d23b27a7dd 100644 --- a/phpBB/includes/auth/auth_apache.php +++ b/phpBB/includes/auth/auth_apache.php @@ -148,8 +148,8 @@ function autologin_apache() if (!empty($php_auth_user) && !empty($php_auth_pw)) { - set_var($php_auth_user, $php_auth_user, 'string'); - set_var($php_auth_pw, $php_auth_pw, 'string'); + set_var($php_auth_user, $php_auth_user, 'string', true); + set_var($php_auth_pw, $php_auth_pw, 'string', true); $sql = 'SELECT * FROM ' . USERS_TABLE . " @@ -231,7 +231,7 @@ function validate_session_apache(&$user) } $php_auth_user = ''; - set_var($php_auth_user, $_SERVER['PHP_AUTH_USER'], 'string'); + set_var($php_auth_user, $_SERVER['PHP_AUTH_USER'], 'string', true); return ($php_auth_user === $user['username']) ? true : false; } |
