laruence                                 Fri, 23 Sep 2011 02:56:25 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=317172

Log:
Fixed bug #55758 (Digest Authenticate missed in 5.4)
 the block I am removing should be removed along with the PG(saf_mod) condition.
 since it is inside the PG(saf_mod) condition block.

Bug: https://bugs.php.net/55758 (Open) Digest Authenticate missed in 5.4
      
Changed paths:
    U   php/php-src/branches/PHP_5_4/main/SAPI.c
    U   php/php-src/trunk/main/SAPI.c

Modified: php/php-src/branches/PHP_5_4/main/SAPI.c
===================================================================
--- php/php-src/branches/PHP_5_4/main/SAPI.c    2011-09-22 22:36:06 UTC (rev 
317171)
+++ php/php-src/branches/PHP_5_4/main/SAPI.c    2011-09-23 02:56:25 UTC (rev 
317172)
@@ -798,11 +798,6 @@
                                }
                        } else if (!STRCASECMP(header_line, 
"WWW-Authenticate")) { /* HTTP Authentication */
                                sapi_update_response_code(401 TSRMLS_CC); /* 
authentication-required */
-
-                               myuid = php_getuid(TSRMLS_C);
-                               efree(header_line);
-
-                               sapi_header.header_len = 
spprintf(&sapi_header.header, 0, "WWW-Authenticate: Basic realm=\"%ld\"", 
myuid);
                        }
                        if (sapi_header.header==header_line) {
                                *colon_offset = ':';

Modified: php/php-src/trunk/main/SAPI.c
===================================================================
--- php/php-src/trunk/main/SAPI.c       2011-09-22 22:36:06 UTC (rev 317171)
+++ php/php-src/trunk/main/SAPI.c       2011-09-23 02:56:25 UTC (rev 317172)
@@ -798,11 +798,6 @@
                                }
                        } else if (!STRCASECMP(header_line, 
"WWW-Authenticate")) { /* HTTP Authentication */
                                sapi_update_response_code(401 TSRMLS_CC); /* 
authentication-required */
-
-                               myuid = php_getuid(TSRMLS_C);
-                               efree(header_line);
-
-                               sapi_header.header_len = 
spprintf(&sapi_header.header, 0, "WWW-Authenticate: Basic realm=\"%ld\"", 
myuid);
                        }
                        if (sapi_header.header==header_line) {
                                *colon_offset = ':';

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to