On 14/05/2014 2:50 p.m., Eliezer Croitoru wrote:
> I am not sure but am almost sure I asked this before.
> I have a google url that came into my external_acl helper and could not
> be parsed by the URI library.
> the issue is that in the query there are symbols such as "|" aka pipe.
> 
> Now the client indeed sent it for sure.
> I am not sure if in the logs and external_acl helpers I need to see that
> it's a "|" but rather the encoded value.
> 
> What do you think?
> 
> Eliezer


The BNF requirements on query-string are:

   query         = *( pchar / "/" / "?" )

   pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"

   unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"

   sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
                 / "*" / "+" / "," / ";" / "="


'|' characters is only permitted when %-encoded.

Squid is expected to deliver properly %-encoded URLs to helpers, logs,
and any outgoing messages regardless of how it was received.

Amos

Reply via email to