$HTTP_POST_FILES. Here's the patch I came up with.
| From: | Shane Burrell | Date: | Fri, 10 Mar 2000 14:13:31 +0000 |
| Subject: | $HTTP_POST_FILES. Here's the patch I came up with. | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11867@lists.php.net to get a copy of this message | ||
Let me know if theres a built in function that works. Heres the change.
Index: rfc1867.c
===================================================================
RCS file: /repository/php4/rfc1867.c,v
retrieving revision 1.30
diff -r1.30 rfc1867.c
129c129
< lbuf = emalloc(s-name +
MAX(MAX(sizeof("[name]"),sizeof("[size]")),sizeof("[type]")));
---
> lbuf = emalloc(s-name +
> MAX(MAX(MAX(sizeof("[tmpname]"),sizeof("[name]")),sizeof("[size]")),sizeof("[type]")));
206c206
<
---
>
269a270,277
>
> /* Add $foo[tmpname] */
> sprintf(lbuf, "%s[tmpname]", namebuf);
> register_http_post_files_variable(lbuf, fn, http_post_files ELS_CC PLS_CC);
>
>
>
>