Fixed: strip quotes from filename

This commit is contained in:
Stefan Esser 2004-11-20 18:49:36 +00:00
parent f3b74fe9ac
commit 224201e635

View File

@ -1094,7 +1094,15 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
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 {