yohgaki         Sat Sep  7 17:04:15 2002 EDT

  Modified files:              
    /php4/main  php_variables.c 
  Log:
  MFB
  
  
Index: php4/main/php_variables.c
diff -u php4/main/php_variables.c:1.42 php4/main/php_variables.c:1.43
--- php4/main/php_variables.c:1.42      Sun Aug 25 14:45:02 2002
+++ php4/main/php_variables.c   Sat Sep  7 17:04:14 2002
@@ -16,7 +16,7 @@
    |          Zeev Suraski <[EMAIL PROTECTED]>                                |
    +----------------------------------------------------------------------+
  */
-/* $Id: php_variables.c,v 1.42 2002/08/25 18:45:02 helly Exp $ */
+/* $Id: php_variables.c,v 1.43 2002/09/07 21:04:14 yohgaki Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -300,9 +300,10 @@
 
                        *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);
                }
                var = php_strtok_r(NULL, separator, &strtok_buf);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to