From: Ilia Alshanetsky Date: Fri, 25 Nov 2005 00:02:16 +0000 (+0000) Subject: Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x). X-Git-Tag: php-5.1.1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=363b0ce10b7f6abce3afb6a89846ddc37b7504d2;p=php Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x). --- diff --git a/NEWS b/NEWS index c22b30868f..5026267767 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ PHP NEWS - Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash). (Dmitry) - Fixed bug #35358 (Incorrect error messages for PDO class constants). (Ilia) +- Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x). (Ilia) 24 Nov 2005, PHP 5.1 - Added support for class constants and static members for internal classes. diff --git a/main/main.c b/main/main.c index 52e80ea305..51fe11969d 100644 --- a/main/main.c +++ b/main/main.c @@ -1804,7 +1804,7 @@ PHPAPI int php_handle_auth_data(const char *auth TSRMLS_DC) } if (ret == -1 && auth && auth[0] != '\0' && strncmp(auth, "Digest ", 7) == 0) { - SG(request_info).auth_digest = estrdup(auth); + SG(request_info).auth_digest = estrdup(auth + 7); ret = 0; }