mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 20:03:30 +02:00
refactor: updated SearxNG connector migration and fixed validation for SearxNG host URL
This commit is contained in:
parent
08661e686c
commit
576dc19260
3 changed files with 7 additions and 8 deletions
|
|
@ -412,7 +412,7 @@ def validate_connector_config(
|
|||
raise ValueError(f"Invalid email format for {connector_name} connector")
|
||||
|
||||
def validate_url_field(key: str, connector_name: str) -> None:
|
||||
if not validators.url(config.get(key, "")):
|
||||
if not validators.url(config.get(key, "").strip(), simple_host=True):
|
||||
raise ValueError(f"Invalid base URL format for {connector_name} connector")
|
||||
|
||||
def validate_list_field(key: str, field_name: str) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue