mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
This commit is contained in:
parent
02238d3113
commit
2af4c4b3c7
1 changed files with 1 additions and 2 deletions
|
|
@ -108,8 +108,7 @@ def validate_url(url: Union[str, Sequence[str]]):
|
|||
|
||||
# Blocklist check using unified filtering logic
|
||||
if WEB_FETCH_FILTER_LIST:
|
||||
result = is_string_allowed(url, WEB_FETCH_FILTER_LIST)
|
||||
if len(result) == 0:
|
||||
if not is_string_allowed(url, WEB_FETCH_FILTER_LIST):
|
||||
log.warning(f"URL blocked by filter list: {url}")
|
||||
raise ValueError(ERROR_MESSAGES.INVALID_URL)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue