1 Restore lost functionality
3 Probably-Signed-off-by: Dave Bender <bender@benegon.com>
4 [yann.morin.1998@free.fr: patch was made by Dave, but he
5 forgot his SoB line, so I added it]
6 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8 diff -rupN cgic206/cgic.c cgic206_tempfile/cgic.c
9 --- cgic206/cgic.c 2014-03-16 18:17:11.000000000 -0400
10 +++ cgic206_tempfile/cgic.c 2015-01-21 11:58:45.436384908 -0500
11 @@ -1278,6 +1278,20 @@ cgiFormResultType cgiFormFileContentType
15 +const char* cgiFormFileGetTempfileName(
19 + e = cgiFormEntryFindFirst(name);
22 + } else if (!strlen(e->tfileName)) {
25 + return e->tfileName;
29 cgiFormResultType cgiFormFileSize(
30 char *name, int *sizeP)
32 diff -rupN cgic206/cgic.h cgic206_tempfile/cgic.h
33 --- cgic206/cgic.h 2014-03-16 18:17:11.000000000 -0400
34 +++ cgic206_tempfile/cgic.h 2015-01-21 11:53:02.915148026 -0500
35 @@ -141,6 +141,8 @@ extern cgiFormResultType cgiFormRadio(
36 char *name, char **valuesText, int valuesTotal,
37 int *result, int defaultV);
39 +extern const char* cgiFormFileGetTempfileName(char* name);
41 /* The paths returned by this function are the original names of files
42 as reported by the uploading web browser and shoult NOT be
43 blindly assumed to be "safe" names for server-side use! */