]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 4 Jul 2019 11:01:16 +0000 (23:01 +1200)
commit2d3a615ea3440fae6dbe66277a95e6264c586c6b
tree72395bdb1138c45b312933dafc8418a4413fb582
parente8121b2281301d4704129d81ecfdca959611c333
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