sesser          Fri Nov 22 14:34:18 2002 EDT

  Modified files:              
    /php4/main  rfc1867.c 
  Log:
  little fix 
  
  
  
Index: php4/main/rfc1867.c
diff -u php4/main/rfc1867.c:1.123 php4/main/rfc1867.c:1.124
--- php4/main/rfc1867.c:1.123   Thu Nov 14 11:30:07 2002
+++ php4/main/rfc1867.c Fri Nov 22 14:34:17 2002
@@ -16,7 +16,7 @@
    |          Jani Taskinen <[EMAIL PROTECTED]>                              |
    +----------------------------------------------------------------------+
  */
-/* $Id: rfc1867.c,v 1.123 2002/11/14 16:30:07 sesser Exp $ */
+/* $Id: rfc1867.c,v 1.124 2002/11/22 19:34:17 sesser Exp $ */
 
 /*
  *  This product includes software developed by the Apache Group
@@ -72,7 +72,7 @@
 
 static void normalize_protected_variable(char *varname TSRMLS_DC)
 {
-       char *s=varname, *index=NULL, *indexend=NULL;
+       char *s=varname, *index=NULL, *indexend=NULL, *p;
        
        /* overjump leading space */
        while (*s == ' ') {
@@ -82,6 +82,15 @@
        /* and remove it */
        if (s != varname) {
                memcpy(varname, s, strlen(s)+1);
+       }
+
+       for (p=varname; *p && *p != '['; p++) {
+               switch(*p) {
+                       case ' ':
+                       case '.':
+                               *p='_';
+                               break;
+               }
        }
 
        /* find index */



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

Reply via email to