1
0
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:
Zeev Suraski
2000-09-04 22:05:00 +00:00
parent 60825fab88
commit 5dca99232e

View File

@@ -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;