[PATCH v4] httpd: Pass custom HTTP headers to CGI scripts

Alexander Vickberg wickbergster at gmail.com
Tue Apr 16 06:41:35 UTC 2019


Sorry about this but apparently I can't configure Gmail to not ruin the
email formatting so I am attaching the diff instead.

Also I wonder if you meant to do this in commit 51792e1:

diff --git a/networking/httpd.c b/networking/httpd.c
index c486197b8..858d35037 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1836,10 +1836,11 @@ static void
send_HTTP_FORBIDDEN_and_exit_if_denied_ip(void)
  (unsigned char)(cur->mask)
  );
 #endif
- if ((rmt_ip & cur->mask) == cur->ip)
+ if ((rmt_ip & cur->mask) == cur->ip) {
  if (cur->allow_deny == 'A')
  return;
  send_headers_and_exit(HTTP_FORBIDDEN);
+ }
  }

  if (flg_deny_all) /* depends on whether we saw "D:*" */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190416/2698c933/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpd.diff
Type: text/x-patch
Size: 11210 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190416/2698c933/attachment.bin>


More information about the busybox mailing list