Fixed handling of HTTP requests with multiple Cookie headers.

This commit is contained in:
Ilia Alshanetsky 2005-07-18 04:04:18 +00:00
parent 8cea6123e9
commit 75e6dd1c61
2 changed files with 5 additions and 1 deletions

View file

@ -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;
}