mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 09:45:24 -04:00
fix: check_outbound_url crashes on a truthy non-string URL (#1623)
This commit is contained in:
@@ -56,6 +56,8 @@ def check_outbound_url(
|
||||
Returns ``(ok, reason)``. ``ok`` is True only when the URL is safe to fetch.
|
||||
``resolver`` is injectable so callers/tests can avoid real DNS.
|
||||
"""
|
||||
if not isinstance(url, str):
|
||||
return False, "URL must be a string"
|
||||
if not url or not url.strip():
|
||||
return False, "URL is required"
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user