]> granicus.if.org Git - php/commitdiff
MFH: Fixed handling of HTTP requests with multiple Cookie headers.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 18 Jul 2005 04:04:43 +0000 (04:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 18 Jul 2005 04:04:43 +0000 (04:04 +0000)
main/php_variables.c

index f5c8711ae7f9a0560e5bb760b05880030c746940..8cf60dc8f75cd3ccc303a6e6aade140ffa9c88ae 100644 (file)
@@ -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;
        }