]> git.ipfire.org Git - thirdparty/squid.git/commit
Merge pull request from GHSA-jvf6-h9gj-pmj6
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 4 Sep 2020 05:38:30 +0000 (17:38 +1200)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 23 Nov 2020 09:44:04 +0000 (22:44 +1300)
commit50e0ba1b03ec39720e981a641bb0d4e73aaa7b94
tree23b12a3623c9f29d1004c7d76f00d43d3976d762
parent3f5d044d9a4873b3c769d13c43d5d3f9bfe258a3
Merge pull request from GHSA-jvf6-h9gj-pmj6

* Add slash prefix to path-rootless or path-noscheme URLs

* Update src/anyp/Uri.cc

Co-authored-by: Alex Rousskov <rousskov@measurement-factory.com>
* restore file trailer GH auto-removes

* Remove redundant path-empty check

* Removed stale comment left behind by b2ab59a

Many things imply a leading `/` in a URI. Their enumeration is likely to
(and did) become stale, misleading the reader.

* fixup: Remind that the `src` iterator may be at its end

We are dereferencing `src` without comparing it to `\0`.
To many readers that (incorrectly) implies that we are not done iterating yet.

Also fixed branch-added comment indentation.

Co-authored-by: Alex Rousskov <rousskov@measurement-factory.com>
src/anyp/Uri.cc