1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

isAllowedURI: Remove incorrect note

(cherry picked from commit 6cbba914a7)
This commit is contained in:
Robert Hensing 2023-12-06 12:43:20 +01:00
parent 90c7904abf
commit ec5e4041ba

View file

@ -655,8 +655,7 @@ bool isAllowedURI(std::string_view uri, const Strings & allowedUris)
{
/* 'uri' should be equal to a prefix, or in a subdirectory of a
prefix. Thus, the prefix https://github.co does not permit
access to https://github.com. Note: this allows 'http://' and
'https://' as prefixes for any http/https URI. */
access to https://github.com. */
for (auto & prefix : allowedUris) {
if (uri == prefix ||
(uri.size() > prefix.size()