]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 18 Oct 2019 06:38:27 +0000 (19:38 +1300)
commitfbbdf75efd7a5cc244b4886a9d42ea458c5a3a73
tree683228640a186d1e5f57664971fe55e17701783b
parentb0ea172fd8862ffcf57d65c4747e4dc5dde26c65
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.
26 files changed:
src/Downloader.cc
src/HttpRequest.cc
src/HttpRequest.h
src/Makefile.am
src/acl/Asn.cc
src/adaptation/ecap/MessageRep.cc
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