cvs: php4 /ext/mbstring mbstring.c

From: Date: Sat, 07 Sep 2002 14:07:05 +0000
Subject: cvs: php4 /ext/mbstring mbstring.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13891@lists.php.net to get a copy of this message
yohgaki Sat Sep 7 10:07:05 2002 EDT Modified files: /php4/ext/mbstring mbstring.c Log: Fixed array var handling. Patch by Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp> Index: php4/ext/mbstring/mbstring.c diff -u php4/ext/mbstring/mbstring.c:1.96 php4/ext/mbstring/mbstring.c:1.97 --- php4/ext/mbstring/mbstring.c:1.96 Sat Sep 7 05:23:39 2002 +++ php4/ext/mbstring/mbstring.c Sat Sep 7 10:07:05 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mbstring.c,v 1.96 2002/09/07 09:23:39 yohgaki Exp $ */ +/* $Id: mbstring.c,v 1.97 2002/09/07 14:07:05 yohgaki Exp $ */ /* * PHP4 Multibyte String module "mbstring" (currently only for Japanese) @@ -1271,15 +1271,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; }

« previous php.cvs (#13891) next »