mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
isAllowedURI: Remove incorrect note
This commit is contained in:
parent
91ba7b2307
commit
6cbba914a7
1 changed files with 1 additions and 2 deletions
|
@ -603,8 +603,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()
|
||||
|
|
Loading…
Reference in a new issue