From: Stefan Esser Date: Fri, 22 Nov 2002 19:35:43 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=293086db3f53ec7b2bf239b9c9bf70021947c259;p=php MFH --- diff --git a/main/rfc1867.c b/main/rfc1867.c index f422b7e66c..ce6787d2ab 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -84,6 +84,15 @@ static void normalize_protected_variable(char *varname TSRMLS_DC) memcpy(varname, s, strlen(s)+1); } + for (p=varname; *p && *p != '['; p++) { + switch(*p) { + case ' ': + case '.': + *p='_'; + break; + } + } + /* find index */ index = strchr(varname, '['); if (index) {