mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 09:45:24 -04:00
fix: validate_caldav_url crashes with TypeError on a non-string URL (#1608)
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ def _validate_caldav_ip(host: str) -> None:
|
||||
|
||||
def validate_caldav_url(raw_url: str) -> str:
|
||||
"""Validate and normalize a user-provided CalDAV URL before server-side use."""
|
||||
url = (raw_url or "").strip()
|
||||
url = (raw_url if isinstance(raw_url, str) else "").strip()
|
||||
if not url:
|
||||
raise ValueError("CalDAV URL is required")
|
||||
parsed = urlparse(url)
|
||||
|
||||
Reference in New Issue
Block a user