From: Moriyoshi Koizumi Date: Thu, 21 Nov 2002 14:51:26 +0000 (+0000) Subject: Fixed yet another mb_parse_str() bug X-Git-Tag: php-4.3.0RC2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c0b8b370b785ac6f7f1e0f680245421a7525d95;p=php Fixed yet another mb_parse_str() bug # This is reported by Ilia. Thanks! --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 1a029b0331..9dcb8d4f19 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1719,16 +1719,16 @@ PHP_FUNCTION(mb_parse_str) while (var && n < num) { val = strchr(var, '='); if (val) { /* have a value */ + len_list[n] = php_url_decode(var, val-var); str_list[n] = var; - len_list[n] = php_url_decode(var, strlen(var)); n++; *val++ = '\0'; str_list[n] = val; len_list[n] = php_url_decode(val, strlen(val)); } else { - str_list[n] = var; len_list[n] = php_url_decode(var, strlen(var)); + str_list[n] = var; n++; str_list[n] = "";