[packages] ipset: update to version 2.3.0, probably you need to rebuild your toolchai...
[openwrt.git] / package / busybox / patches / 410-httpd_cgi_headers.patch
1 Index: busybox-1.7.2/networking/httpd.c
2 ===================================================================
3 --- busybox-1.7.2.orig/networking/httpd.c 2007-10-04 15:06:51.993046080 +0200
4 +++ busybox-1.7.2/networking/httpd.c 2007-10-04 15:25:10.815664410 +0200
5 @@ -1314,10 +1314,10 @@
6 if (full_write(1, HTTP_200, sizeof(HTTP_200)-1) != sizeof(HTTP_200)-1)
7 break;
8 }
9 - /* Commented out:
10 - if (!strstr(rbuf, "ontent-")) {
11 - full_write(s, "Content-type: text/plain\r\n\r\n", 28);
12 + if (!strstr(rbuf, "ontent-") && !strstr(rbuf, "ocation:")) {
13 + full_write(1, "Content-type: text/plain\r\n\r\n", 28);
14 }
15 + /* Previously commented out:
16 * Counter-example of valid CGI without Content-type:
17 * echo -en "HTTP/1.0 302 Found\r\n"
18 * echo -en "Location: http://www.busybox.net\r\n"
This page took 0.048086 seconds and 5 git commands to generate.