summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-06-13 22:13:57 +0000
committerfoobar <sniper@php.net>2002-06-13 22:13:57 +0000
commitf9e492d00b9cdf730eab2834bcd00d7c41559a68 (patch)
tree154bc0c32592fca371505f08ff733e0957c1bd39 /sapi/apache/mod_php4.c
parent6189dac44559b0066cc0c793ab05678fec2a36f0 (diff)
downloadphp-git-f9e492d00b9cdf730eab2834bcd00d7c41559a68.tar.gz
@- Fixed bug with Apache which let PHP_AUTH_* variables to be set when
@ external basic auth mechanism was used. (Jani) Fixes bugs: #16653, #14534, #14370
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index e3afd228b4..690a7c3c8d 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -403,7 +403,7 @@ static void init_request_info(TSRMLS_D)
authorization = table_get(r->headers_in, "Authorization");
}
if (authorization
-/* && !auth_type(r) */
+ && !auth_type(r)
&& !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) {
tmp = uudecode(r->pool, authorization);
SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':');