cvs: php4(PHP_4_2_0) /ext/mbstring mbstring.c
| From: | Yasuo Ohgaki | Date: | Sat, 07 Sep 2002 14:11:05 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/mbstring mbstring.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13892@lists.php.net to get a copy of this message | ||
yohgaki Sat Sep 7 10:11:05 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/mbstring mbstring.c
Log:
MFH
Index: php4/ext/mbstring/mbstring.c
diff -u php4/ext/mbstring/mbstring.c:1.48.2.15 php4/ext/mbstring/mbstring.c:1.48.2.16
--- php4/ext/mbstring/mbstring.c:1.48.2.15 Sat Sep 7 05:26:03 2002
+++ php4/ext/mbstring/mbstring.c Sat Sep 7 10:11:05 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.48.2.15 2002/09/07 09:26:03 yohgaki Exp $ */
+/* $Id: mbstring.c,v 1.48.2.16 2002/09/07 14:11:05 yohgaki Exp $ */
/*
* PHP4 Multibyte String module "mbstring" (currently only for Japanese)
@@ -1030,15 +1030,16 @@
strtok_buf = NULL;
var = php_strtok_r(res, separator, &strtok_buf);
while (var) {
- len_list[n] = php_url_decode(var, strlen(var));
val = strchr(var, '=');
val_list[n] = var;
n++;
if (val) { /* have a value */
+ php_url_decode(var, val-var);
*val++ = '\0';
val_list[n] = val;
len_list[n] = php_url_decode(val, strlen(val));
} else {
+ php_url_decode(var, strlen(var));
val_list[n] = "";
len_list[n] = 0;
}