sesser Sat Nov 20 13:49:37 2004 EDT Modified files: /php-src/main rfc1867.c Log: Fixed: strip quotes from filename http://cvs.php.net/diff.php/php-src/main/rfc1867.c?r1=1.164&r2=1.165&ty=u Index: php-src/main/rfc1867.c diff -u php-src/main/rfc1867.c:1.164 php-src/main/rfc1867.c:1.165 --- php-src/main/rfc1867.c:1.164 Wed Nov 10 19:38:04 2004 +++ php-src/main/rfc1867.c Sat Nov 20 13:49:36 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.164 2004/11/11 00:38:04 iliaa Exp $ */ +/* $Id: rfc1867.c,v 1.165 2004/11/20 18:49:36 sesser Exp $ */ /* * This product includes software developed by the Apache Group @@ -1094,7 +1094,15 @@ s = tmp; } #endif + if (!is_anonymous) { + if (PG(magic_quotes_gpc)) { + s = s ? s : filename; + tmp = strrchr(s, '\''); + s = tmp > s ? tmp : s; + tmp = strrchr(s, '"'); + s = tmp > s ? tmp : s; + } if (s && s > filename) { safe_php_register_variable(lbuf, s+1, NULL, 0 TSRMLS_CC); } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php