diff options
author | Stefan Esser <sesser@php.net> | 2004-07-14 09:43:26 +0000 |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2004-07-14 09:43:26 +0000 |
commit | 446f4d1bc25c4e04da215da84b8d910267bf7437 (patch) | |
tree | bd7643cf526f15d87823c00e9786c8644b45943e | |
parent | d673ec01844db598426d80de6d5a7dce03b16037 (diff) | |
download | php-git-446f4d1bc25c4e04da215da84b8d910267bf7437.tar.gz |
Security Fix broken! Destroyed Basic auth. Blame: me
4.3.x not affected
-rw-r--r-- | sapi/apache/mod_php5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/mod_php5.c b/sapi/apache/mod_php5.c index d477a141a7..4aac2d2862 100644 --- a/sapi/apache/mod_php5.c +++ b/sapi/apache/mod_php5.c @@ -485,7 +485,7 @@ static void init_request_info(TSRMLS_D) tmp = uudecode(r->pool, authorization); SG(request_info).auth_user = NULL; tmp_user = getword_nulls_nc(r->pool, &tmp, ':'); - if (SG(request_info).auth_user) { + if (tmp_user) { r->connection->user = pstrdup(r->connection->pool, tmp_user); r->connection->ap_auth_type = "Basic"; SG(request_info).auth_user = estrdup(tmp_user); |