The quoted string fields parsing done in squid3 using the httpHeaderParseQuotedString function (HttpHeaderTools.cc file)

I found that we do not support multiline quoted string fields, but according the rfc2616 multiline quoted string fields should supported:

   quoted-string  = ( <"> *(qdtext | quoted-pair ) <"> )
   qdtext         = <any TEXT except <">>
   TEXT           = <any OCTET except CTLs,
                        but including LWS>
   LWS            = [CRLF] 1*( SP | HT



I am planning to fix the httpHeaderParseQuotedString function, using one of the following rules:

1) Just ignore any "\r" or "\n" character. This is the fastest and simpler approach
3) Require "\r\n " or "\r\n\t" as line separator and just remove the "\r\n"
3) Require "\r\n " or "\r\n\t" as line separator and replace it with a space
4) Also support "\n\t" or "\n\n\t" as line separators.

Any comments or suggestions?

Reply via email to