]> git.ipfire.org Git - thirdparty/squid.git/commit
Update URI parser to use SBuf parsing APIs (#275)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 10 Sep 2019 09:32:43 +0000 (09:32 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 10 Sep 2019 19:50:39 +0000 (19:50 +0000)
commit6c880a1675820e193b111d58893bc03f90396f27
tree6bf6a47b113d67ebbdaf7afc26fc578fda741db7
parent49f57088f725f0823afa2bedfcef6a1b210eb0d8
Update URI parser to use SBuf parsing APIs (#275)

Initial replacement of URI/URL parse method internals with
SBuf and Tokenizer based parse.

For now this parsing only handles the scheme section of
URL. With this we add the missing check for alpha character
as first in the scheme name for unknown schemes and
prohibit URL without any scheme (previously accepted).

Also polishes the documentation, URN and asterisk-form
URI parsing.

Also, adds validation of URN NID portion characters to
ensure valid authority host names are generated for
THTTP lookup URLs.
24 files changed:
src/Downloader.cc
src/HttpRequest.cc
src/HttpRequest.h
src/Makefile.am
src/anyp/ProtocolType.h
src/anyp/Uri.cc
src/anyp/Uri.h
src/anyp/UriScheme.cc
src/anyp/UriScheme.h
src/client_side_request.cc
src/htcp.cc
src/icmp/net_db.cc
src/icp_v2.cc
src/mgr/Inquirer.cc
src/mime.cc
src/neighbors.cc
src/peer_digest.cc
src/servers/FtpServer.cc
src/servers/Http1Server.cc
src/store_digest.cc
src/tests/stub_HttpRequest.cc
src/tests/stub_libanyp.cc
src/tests/testHttpRequest.cc
src/urn.cc