]> git.ipfire.org Git - thirdparty/squid.git/commit
Remove userinfo support from old protocols (#419)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sun, 23 Jun 2019 15:15:56 +0000 (15:15 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 28 Jun 2019 03:10:37 +0000 (03:10 +0000)
commit0d0f51610c314915ffa5980aff2788d13622ee2b
tree035f1e1d64a0b8b240145af15c794430d2065a0c
parent26e3e64019d5d8adc3f16ed2a0547e828b4007f5
Remove userinfo support from old protocols (#419)

RFC 1738 defines the URL schemes for gopher and wais as not
having the userinfo@ segment.

coap, coaps, whois and cache_object also do not use this segment.

For these cases we can obey the RFC7230 requirement to ignore the
segment when producing normalized absolute URL.

Of the supported protocols only FTP requires userinfo, and because
we cannot be certain for unknown protocols allow it as well.
src/anyp/Uri.cc