fix partial password masking and ambiguous ice server restore

- Mask userinfo before query params so a credential key inside a password can't leave the rest of it visible
- Reject restoring redacted ice servers when saved servers share urls but hold different accounts
This commit is contained in:
Josh Hawkins
2026-10-18 14:41:28 -05:00
parent 9eda0b657a
commit 03e5ab9d1f
5 changed files with 61 additions and 16 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ export const maskCredentials = (value: string): string => {
}
return value
.replace(CREDENTIAL_QUERY_PATTERN, "$1*")
.replace(URL_USERINFO_PATTERN, "://*:*@");
.replace(URL_USERINFO_PATTERN, "://*:*@")
.replace(CREDENTIAL_QUERY_PATTERN, "$1*");
};
export const hasCredentials = (value: string): boolean =>