From f9e492d00b9cdf730eab2834bcd00d7c41559a68 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 13 Jun 2002 22:13:57 +0000 Subject: [PATCH] @- 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 --- sapi/apache/mod_php4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ':'); -- 2.50.1