iliaa           Mon Jun  7 09:51:50 2004 EDT

  Modified files:              
    /php-src/main       SAPI.c 
  Log:
  Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
  adds extra spaces).
  
  
http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.185&r2=1.186&ty=u
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.185 php-src/main/SAPI.c:1.186
--- php-src/main/SAPI.c:1.185   Tue May 25 18:12:40 2004
+++ php-src/main/SAPI.c Mon Jun  7 09:51:50 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: SAPI.c,v 1.185 2004/05/25 22:12:40 sesser Exp $ */
+/* $Id: SAPI.c,v 1.186 2004/06/07 13:51:50 iliaa Exp $ */
 
 #include <ctype.h>
 #include <sys/stat.h>
@@ -605,6 +605,11 @@
                                        zval *repl_temp;
                                        char *ptr = colon_offset+1;
                                        int ptr_len=0, result_len = 0;
+
+                                       /* skip white space */
+                                       while (isspace(*ptr)) {
+                                               ptr++;
+                                       }
 
                                        myuid = php_getuid();
 

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

Reply via email to