From b5251c1d63b7801f80428770f468ab5911384c74 Mon Sep 17 00:00:00 2001 From: chenguowei <457219884@qq.com> Date: Tue, 22 Jul 2025 11:52:27 +0800 Subject: [PATCH] Remove the truncation logic in the validate process --- api/core/ops/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/core/ops/utils.py b/api/core/ops/utils.py index 36d060afd2..89755bdbc0 100644 --- a/api/core/ops/utils.py +++ b/api/core/ops/utils.py @@ -88,10 +88,7 @@ def validate_url(url: str, default_url: str, allowed_schemes: tuple = ("https", if parsed.scheme not in allowed_schemes: raise ValueError(f"URL scheme must be one of: {', '.join(allowed_schemes)}") - # Reconstruct URL with only scheme, netloc (removing path, query, fragment) - normalized_url = f"{parsed.scheme}://{parsed.netloc}" - - return normalized_url + return url def validate_url_with_path(url: str, default_url: str, required_suffix: str | None = None) -> str: