mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-19 02:12:10 +08:00
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:
@@ -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',
|
||||
|
||||
@@ -500,6 +500,9 @@ export interface TranslationResources {
|
||||
updateSuccess: string
|
||||
}
|
||||
}
|
||||
warnings: {
|
||||
invalidTestUrl: string
|
||||
}
|
||||
}
|
||||
page: {
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user