Re: format specifiers in deny_info URL

From: ian j hart <ianjhart@dont-contact.us>
Date: Tue, 22 Jan 2008 23:21:11 +0000

On Tuesday 22 January 2008 04:14:06 Henrik Nordstrom wrote:
> On tis, 2008-01-22 at 00:04 +0000, ian j hart wrote:
> > ref:
> > http://www.mail-archive.com/squid-users%40squid-cache.org/msg52048.html
> >
> > Can someone please point me to the code which expands the URL.
>
> Only a sinlge %s is supported. Nothing else.
>
> from errorpage.c/cc:
>
> char *quoted_url =
> rfc1738_escape_part(urlCanonical(err->request));
> httpHeaderPutStrf(&rep->header, HDR_LOCATION, name, quoted_url);
>
> Use of other % codes will result in random garbage or even segfaults..
>
> Regards
> Henrik

Drat!

I know I'm going to regret this, but how difficult would this be to do?

external_acl_message appears to be global!

Cheers

-- 
ian j hart
Received on Tue Jan 22 2008 - 16:21:29 MST

This archive was generated by hypermail pre-2.1.9 : Wed Jan 30 2008 - 12:00:09 MST