iliaa Mon Jul 18 00:04:43 2005 EDT
Modified files: (Branch: PHP_4_4)
/php-src/main php_variables.c
Log:
MFH: Fixed handling of HTTP requests with multiple Cookie headers.
http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.45.2.13&r2=1.45.2.13.2.1&ty=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.45.2.13
php-src/main/php_variables.c:1.45.2.13.2.1
--- php-src/main/php_variables.c:1.45.2.13 Tue May 17 14:42:35 2005
+++ php-src/main/php_variables.c Mon Jul 18 00:04:43 2005
@@ -16,7 +16,7 @@
| Zeev Suraski <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_variables.c,v 1.45.2.13 2005/05/17 18:42:35 iliaa Exp $ */
+/* $Id: php_variables.c,v 1.45.2.13.2.1 2005/07/18 04:04:43 iliaa Exp $ */
#include <stdio.h>
#include "php.h"
@@ -304,7 +304,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