mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 12:08:04 +00:00
fix: resolve backward compability in config
This commit is contained in:
@@ -149,6 +149,12 @@ def is_trusted_url(url, url_filters):
|
||||
if not path.startswith(path_prefix):
|
||||
continue
|
||||
|
||||
if "url_prefix" in filter:
|
||||
url_prefix = filter["url_prefix"]
|
||||
|
||||
if not url.startswith(url_prefix):
|
||||
continue
|
||||
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user