iliaa           Mon Jul 18 00:04:18 2005 EDT

  Modified files:              
    /php-src    NEWS 
    /php-src/main       php_variables.c 
  Log:
  Fixed handling of HTTP requests with multiple Cookie headers. 
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1997&r2=1.1998&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1997 php-src/NEWS:1.1998
--- php-src/NEWS:1.1997 Thu Jul 14 09:44:03 2005
+++ php-src/NEWS        Mon Jul 18 00:04:17 2005
@@ -1,5 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?? ??? 2005, PHP 5.1
+- Fixed handling of HTTP requests with multiple Cookie headers. (Ilia)
+
 14 Jul 2005, PHP 5.1 Beta 3
 - Upgraded bundled SQLite library for PDO:SQLite to 3.2.2 (Ilia)
 - Moved extensions to PECL:
http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.96&r2=1.97&ty=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.96 php-src/main/php_variables.c:1.97
--- php-src/main/php_variables.c:1.96   Wed Jun  1 05:44:10 2005
+++ php-src/main/php_variables.c        Mon Jul 18 00:04:18 2005
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_variables.c,v 1.96 2005/06/01 09:44:10 dmitry Exp $ */
+/* $Id: php_variables.c,v 1.97 2005/07/18 04:04:18 iliaa Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -317,7 +317,8 @@
                        separator = (char *) estrdup(PG(arg_separator).input);
                        break;
                case PARSE_COOKIE:
-                       separator = ";\0";
+                       /* The , and space are needed for instances when there 
are multiple Cookie: headers */
+                       separator = ";, \0";
                        break;
        }
        

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

Reply via email to