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

Denys Vlasenko vda.linux at googlemail.com
Tue Apr 16 09:59:16 UTC 2019


Applied with some edits. Please test current git.

On Tue, Apr 16, 2019 at 8:41 AM Alexander Vickberg
<wickbergster at gmail.com> wrote:
>
> 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:*" */
>


More information about the busybox mailing list