mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fixed: strip quotes from filename
This commit is contained in:
parent
f3b74fe9ac
commit
224201e635
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user