summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2002-12-21 20:12:08 +0000
committerAndrei Zmievski <andrei@php.net>2002-12-21 20:12:08 +0000
commit2feb1cf6d7f11130edae2ff47e58f0a6f3970881 (patch)
treeced263437738ad4e4edb2fe282c00d4797171df7 /sapi/apache/mod_php4.c
parentda498edd5ef345425f1d561e80d675ed0667974b (diff)
downloadphp-git-2feb1cf6d7f11130edae2ff47e58f0a6f3970881.tar.gz
MFB.
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 ad7a1697bc..d5333dec8e 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -448,7 +448,7 @@ static void init_request_info(TSRMLS_D)
authorization = table_get(r->headers_in, "Authorization");
}
if (authorization
- && !auth_type(r)
+ && (!PG(safe_mode) || (PG(safe_mode) && !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, ':');