[PHP-DEV] CVS update: php3/functions From: zeev (php-dev <email protected>)
Date: 04/30/98

Date: Thursday April 30, 1998 @ 18:19
Author: zeev

Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv6288/functions

Modified Files:
        post.c
Log Message:
Ok, now it's obvious why there was code that ignores leading spaces in post.c,
netscape adds a space in between cookies. Ignore leading spaces in form variable
names.

Index: php3/functions/post.c
diff -c php3/functions/post.c:1.95 php3/functions/post.c:1.96
*** php3/functions/post.c:1.95 Wed Apr 29 09:24:26 1998
--- php3/functions/post.c Thu Apr 30 18:19:08 1998
***************
*** 169,178 ****
--- 169,183 ----
                          *tmp = '\0';
                  }
          }
+ /* ignore leading spaces in the variable name */
+ while (*var && *var==' ') {
+ var++;
+ }
          var_len = strlen(var);
          if (var_len==0) { /* empty variable name, or variable name with a space in it */
                  return;
          }
+
          /* ensure that we don't have spaces or dots in the variable name (not binary safe) */
          for (tmp=var; *tmp; tmp++) {
                  switch(*tmp) {