From: Ilia Alshanetsky Date: Mon, 18 Jul 2005 04:04:43 +0000 (+0000) Subject: MFH: Fixed handling of HTTP requests with multiple Cookie headers. X-Git-Tag: php-4.4.1RC1~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20777be394570c8872048c731fd9e6a2231272dc;p=php MFH: Fixed handling of HTTP requests with multiple Cookie headers. --- diff --git a/main/php_variables.c b/main/php_variables.c index f5c8711ae7..8cf60dc8f7 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -304,7 +304,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; }