mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
isAllowedURI: Remove incorrect note
(cherry picked from commit 6cbba914a7
)
This commit is contained in:
parent
90c7904abf
commit
ec5e4041ba
1 changed files with 1 additions and 2 deletions
|
@ -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
|
/* 'uri' should be equal to a prefix, or in a subdirectory of a
|
||||||
prefix. Thus, the prefix https://github.co does not permit
|
prefix. Thus, the prefix https://github.co does not permit
|
||||||
access to https://github.com. Note: this allows 'http://' and
|
access to https://github.com. */
|
||||||
'https://' as prefixes for any http/https URI. */
|
|
||||||
for (auto & prefix : allowedUris) {
|
for (auto & prefix : allowedUris) {
|
||||||
if (uri == prefix ||
|
if (uri == prefix ||
|
||||||
(uri.size() > prefix.size()
|
(uri.size() > prefix.size()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue