summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-07-18 04:04:18 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-07-18 04:04:18 +0000
commit75e6dd1c61bc2518764319f3e4acf94919fe2f9e (patch)
tree2d341b22f51262a1d4450b477fdec47acd272e9f
parent8cea6123e9ac5ef352f3241737fbfcf63c06a1b7 (diff)
downloadphp-git-75e6dd1c61bc2518764319f3e4acf94919fe2f9e.tar.gz
Fixed handling of HTTP requests with multiple Cookie headers.
-rw-r--r--NEWS3
-rw-r--r--main/php_variables.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2706c3ab03..f8dd061fb0 100644
--- a/NEWS
+++ b/NEWS
@@ -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:
diff --git a/main/php_variables.c b/main/php_variables.c
index b468c51df0..d2336345e7 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -317,7 +317,8 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
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;
}