• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/cgic/0003-restore-cgiFormFileGetTempfileName.patch
David BenderDavid Bender committed 5bda8c9681e25 Jan 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Restore lost functionality
2
​
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>
7
​
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
12
    }
13
 }
14
 
15
+const char* cgiFormFileGetTempfileName(
16
+   char* name)
17
+{
18
+   cgiFormEntry *e;
19
+   e = cgiFormEntryFindFirst(name);
20
+   if (!e) {
21
+       return NULL;
22
+   } else if (!strlen(e->tfileName)) {
23
+       return NULL;
24
+   } else {
25
+       return e->tfileName;
26
+   }
27
+}
28
+
29
 cgiFormResultType cgiFormFileSize(
30
    char *name, int *sizeP)
31
 {
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); 
38
 
39
+extern const char* cgiFormFileGetTempfileName(char* name);
40
+
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! */
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.