]> git.ipfire.org Git - thirdparty/squid.git/commit
Regression in URL helper API
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 11 Dec 2013 11:12:43 +0000 (03:12 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 11 Dec 2013 11:12:43 +0000 (03:12 -0800)
commitacf2ce75b049b0607a6ea4a8def6471af2bc81f1
tree927b7db0217b7dbc9039b2921688d1bdee26d2d1
parentc29aceab95a573e8c46f977e5c735b9a540065c0
Regression in URL helper API

The backward compatibility logics in redirect.cc are not working as
intended on redirection URLs due to the presence of '=' in the URL and
how the key=value name parsing is performed.

A typical redirection URL looks like:
  http://example.com/?url=http://www.example.net/

and 3.4 has a parser that splits tokens at '=' unconditionally and then
passes the bits as a key and value to the redirector logics which
complains that it does not understand the answer of the URL redirector.
Or treats is an an unknown key=value with no redirection URL.

Either case is handled as a no-redirection result from the helper.

This limits the key names to alphanumeric, hyphen and underscore
characters. Valid URL responses contain characters outside this set and
should no longer be interpreted as keys regardless of the '=' character.
src/HelperReply.cc