From 75e6dd1c61bc2518764319f3e4acf94919fe2f9e Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 18 Jul 2005 04:04:18 +0000 Subject: Fixed handling of HTTP requests with multiple Cookie headers. --- main/php_variables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/php_variables.c') 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; } -- cgit v1.2.1