]> granicus.if.org Git - php/commitdiff
Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x).
authorIlia Alshanetsky <iliaa@php.net>
Fri, 25 Nov 2005 00:02:16 +0000 (00:02 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 25 Nov 2005 00:02:16 +0000 (00:02 +0000)
NEWS
main/main.c

diff --git a/NEWS b/NEWS
index c22b30868fd7be0a8f8fd8dbbdc292bc21508edb..50262677679e4b1b281e73c48057003ce4cd6682 100644 (file)
--- 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. 
index 52e80ea30588c5e8df37e2f0772936ad99d29e9b..51fe11969df5d6dd66396274cdb7e94f3eebcb61 100644 (file)
@@ -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;
        }