mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
3rd time's a charm
This commit is contained in:
parent
4396093666
commit
388170ffa5
@ -202,10 +202,8 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr)
|
||||
}
|
||||
abuf = estrndup(namebuf, strlen(namebuf)-arr_len);
|
||||
sprintf(lbuf, "%s_name[%s]", abuf, arr_index);
|
||||
add_protected_variable(lbuf PLS_CC);
|
||||
} else {
|
||||
sprintf(lbuf, "%s_name", namebuf);
|
||||
add_protected_variable(lbuf PLS_CC);
|
||||
}
|
||||
s = strrchr(filenamebuf, '\\');
|
||||
if (s && s > filenamebuf) {
|
||||
@ -213,6 +211,7 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr)
|
||||
} else {
|
||||
safe_php_register_variable(lbuf, filenamebuf, NULL ELS_CC PLS_CC);
|
||||
}
|
||||
add_protected_variable(lbuf PLS_CC);
|
||||
|
||||
/* Add $foo[name] */
|
||||
if (is_arr_upload) {
|
||||
|
Loading…
Reference in New Issue
Block a user