Patch bug63835.patch for *General Issues Bug #63835
Patch version 2012-12-23 06:04 UTC
Return to Bug #63835 |
Download this patch
Patch Revisions:
Developer: laruence@php.net
diff --git a/main/php_variables.c b/main/php_variables.c
index 4279661..4f60491 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -355,12 +355,21 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
separator = (char *) estrdup(PG(arg_separator).input);
break;
case PARSE_COOKIE:
- separator = ";\0";
+ {
+ char *tmp = res;
+ while (*tmp != '\0') {
+ if (*tmp == ',') {
+ *tmp = ';';
+ }
+ ++tmp;
+ }
+ separator = ";\0";
+ }
break;
}
-
+
var = php_strtok_r(res, separator, &strtok_buf);
-
+
while (var) {
val = strchr(var, '=');
|