* Added experimental version of DHCP-Splash for Kamikaze
[project/luci.git] / contrib / package / haserl-lua / patches / 100-cookie_prefix.patch
1 --- haserl-0.9.23.orig/src/haserl.c     2008-03-18 18:17:55.000000000 +0100
2 +++ haserl-0.9.23/src/haserl.c  2008-03-27 16:58:27.000000000 +0100
3 @@ -340,7 +340,7 @@
4         {
5           token++;
6         }
7 -      myputenv (env, token, global.var_prefix);
8 +      myputenv (env, token, global.cookie_prefix);
9        token = strtok (NULL, ";");
10      }
11    free (qs);
12 @@ -614,6 +614,7 @@
13    global.acceptall = FALSE;    /* don't allow POST data for GET method         */
14    global.uploadlist = NULL;    /* we don't have any uploaded files             */
15    global.var_prefix = HASERL_VAR_PREFIX;
16 +  global.cookie_prefix = "COOKIE_";
17    global.nul_prefix = "";
18  
19  }
20 --- haserl-0.9.23.orig/src/haserl.h     2008-01-25 22:11:38.000000000 +0100
21 +++ haserl-0.9.23/src/haserl.h  2008-03-27 16:58:18.000000000 +0100
22 @@ -10,6 +10,7 @@
23    char *uploaddir;              /* where we upload to                                   */
24    char *uploadhandler;         /* a handler for uploads                                */
25    char *var_prefix;            /* what name we give to FORM variables                  */
26 +  char *cookie_prefix;
27    char *nul_prefix;            /* what name we give to environment variables           */
28    token_t *uploadlist;         /* a linked list of pathspecs                           */
29    int debug;                    /* true if in "debug" mode                              */