php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63835
Patch bug63835.patch revision 2012-12-23 06:04 UTC by laruence@php.net

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, '=');
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 04:01:34 2024 UTC