Skip to content

Commit

Permalink
Add '*,' as wildcard to match all URLs/TLDs in ACls
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Feb 13, 2024
1 parent f40e7ef commit abbe636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pywb/warcserver/access_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ def find_access_rule(self, url, ts=None, urlkey=None, collection=None, acl_user=
if key.startswith(acl_key):
acl_obj = CDXObject(acl)

# Check for "*," in ACL, which matches any URL
if acl_key == b"*,":
acl_obj = CDXObject(acl)

if acl_obj:
user = acl_obj.get('user')
if user == acl_user:
Expand Down

0 comments on commit abbe636

Please sign in to comment.