mirror of
https://github.com/php/php-src.git
synced 2026-04-11 01:53:36 +02:00
Prevent exploit in [tmp_name] as well
This commit is contained in:
@@ -358,6 +358,7 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr)
|
||||
sprintf(lbuf, "%s[tmp_name]", namebuf);
|
||||
}
|
||||
register_http_post_files_variable(lbuf, fn, http_post_files ELS_CC PLS_CC);
|
||||
add_protected_variable(lbuf PLS_CC);
|
||||
{
|
||||
zval file_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user