iliaa           Mon Mar  8 21:24:21 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src    NEWS 
    /php-src/main       SAPI.c 
  Log:
  MFH: Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
  disabled).
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.586&r2=1.1247.2.587&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.586 php-src/NEWS:1.1247.2.587
--- php-src/NEWS:1.1247.2.586   Sun Mar  7 22:16:13 2004
+++ php-src/NEWS        Mon Mar  8 21:24:19 2004
@@ -3,6 +3,8 @@
 ?? Feb 2004, Version 4.3.5
 - Fixed possible crashes inside socket extension, due to missing check inside
   allocation functions. (Ilia)
+- Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
+  disabled). (Ilia)
 - Fixed bug #27505 (htmlentities() does not handle BIG5 correctly). (Ilia, 
   ywliu at hotmail dot com)
 - Fixed bug #27460 (base64_decode() does not handle extra padding).
http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.155.2.16&r2=1.155.2.17&ty=u
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.155.2.16 php-src/main/SAPI.c:1.155.2.17
--- php-src/main/SAPI.c:1.155.2.16      Mon Jan  5 19:56:10 2004
+++ php-src/main/SAPI.c Mon Mar  8 21:24:20 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: SAPI.c,v 1.155.2.16 2004/01/06 00:56:10 iliaa Exp $ */
+/* $Id: SAPI.c,v 1.155.2.17 2004/03/09 02:24:20 iliaa Exp $ */
 
 #include <ctype.h>
 #include <sys/stat.h>
@@ -647,14 +647,9 @@
 #else
                                {
                                        myuid = php_getuid();
-                                       result = emalloc(sizeof("WWW-Authenticate: 
")+20);
-                                       newlen = sprintf(result, "WWW-Authenticate: 
%ld", myuid);       
-                                       newheader = estrndup(result,newlen);
                                        efree(header_line);
-                                       sapi_header.header = newheader;
-                                       sapi_header.header_len = newlen;
-                                       efree(result);
-                               } 
+                                       sapi_header.header_len = 
spprintf(&sapi_header.header, 0, "WWW-Authenticate: Basic realm=\"%ld\"", myuid);
+                               }
 #endif
                        }
                        if (sapi_header.header==header_line) {

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

Reply via email to