summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.9.1-httpd-POST.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/busybox-1.9.1-httpd-POST.patch')
-rw-r--r--package/busybox/busybox-1.9.1-httpd-POST.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.9.1-httpd-POST.patch b/package/busybox/busybox-1.9.1-httpd-POST.patch
new file mode 100644
index 000000000..6a70c8255
--- /dev/null
+++ b/package/busybox/busybox-1.9.1-httpd-POST.patch
@@ -0,0 +1,11 @@
+--- busybox-1.9.1/networking/httpd.c Tue Feb 12 17:03:01 2008
++++ busybox-1.9.1-httpd-POST/networking/httpd.c Mon Mar 17 13:58:09 2008
+@@ -1950,7 +1950,7 @@
+ if ((STRNCASECMP(iobuf, "Content-length:") == 0)) {
+ /* extra read only for POST */
+ if (prequest != request_GET) {
+- tptr = iobuf + sizeof("Content-length:") - 1;
++ tptr = tptr = skip_whitespace(iobuf + sizeof("Content-length:") - 1);
+ if (!tptr[0])
+ send_headers_and_exit(HTTP_BAD_REQUEST);
+ errno = 0;