api: clean url upon entry, not down the road

This commit is contained in:
wukko
2023-12-25 18:20:51 +06:00
committed by dumbmoron
parent d6e4b5ac20
commit ddc87ca42b
4 changed files with 7 additions and 6 deletions

View File

@@ -93,4 +93,4 @@ export function getHostIfValid(url) {
if (!validSubdomain && !anySubdomainAllowed) return;
return host.sld;
}
}