yohgaki Sat Sep 7 17:01:41 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/main php_variables.c Log: Fixed POST/GET/COOKIE var handling Index: php4/main/php_variables.c diff -u php4/main/php_variables.c:1.35.2.3 php4/main/php_variables.c:1.35.2.4 --- php4/main/php_variables.c:1.35.2.3 Wed Jul 31 22:21:00 2002 +++ php4/main/php_variables.c Sat Sep 7 17:01:41 2002 @@ -16,7 +16,7 @@ | Zeev Suraski <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.35.2.3 2002/08/01 02:21:00 yohgaki Exp $ */ +/* $Id: php_variables.c,v 1.35.2.4 2002/09/07 21:01:41 yohgaki Exp $ */ #include <stdio.h> #include "php.h" @@ -300,10 +300,11 @@ *val++ = '\0'; php_url_decode(var, strlen(var)); - val_len = php_url_decode(val, strlen(val)); + val_len = php_url_decode(val, val-var); php_register_variable_safe(var, val, val_len, array_ptr TSRMLS_CC); } else { + php_url_decode(var, strlen(var)); php_register_variable_safe(var, "", 0, array_ptr TSRMLS_CC); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php