mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-04 16:16:46 +00:00
fix(websearch): reject blank searxng status urls
This commit is contained in:
@@ -29,7 +29,8 @@ function hasEnvValue(name: string): boolean {
|
||||
}
|
||||
|
||||
function hasValidSearxngUrl(url: string | undefined): boolean {
|
||||
return normalizeSearxngBaseUrl(url) !== null;
|
||||
const normalized = normalizeSearxngBaseUrl(url);
|
||||
return normalized !== null && normalized !== '';
|
||||
}
|
||||
|
||||
function getProviderStatePath(): string {
|
||||
|
||||
Reference in New Issue
Block a user