fix(proxy): validate user-entered URLs via isValidUrl

Delay test inputs now reject non-http(s) URLs with a warning toast and
fall back to the default URL instead of erroring every node in the
core. Subscription import and profile card host parsing reuse the same
validator, fixing bare-domain URLs shown as local files and
credential-bearing URLs leaking into the card.
This commit is contained in:
Tunglies
2026-09-18 13:18:30 +08:00
parent f6fdb34745
commit c599f5547e
21 changed files with 67 additions and 5 deletions
+1
View File
@@ -324,6 +324,7 @@ export const translationKeys = [
'proxies.page.messages.directMode',
'proxies.page.title.default',
'proxies.page.title.chainMode',
'proxies.feedback.warnings.invalidTestUrl',
'proxies.feedback.notifications.provider.updateSuccess',
'proxies.feedback.notifications.provider.updateFailed',
'proxies.feedback.notifications.provider.genericError',
+3
View File
@@ -500,6 +500,9 @@ export interface TranslationResources {
updateSuccess: string
}
}
warnings: {
invalidTestUrl: string
}
}
page: {
actions: {