mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Prevent malformed URLs from loading current tab
This commit is contained in:
@@ -333,9 +333,12 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
this.settingsService.getEquivalentDomains().then((eqDomains: any[][]) => {
|
this.settingsService.getEquivalentDomains().then((eqDomains: any[][]) => {
|
||||||
let matches: any[] = [];
|
let matches: any[] = [];
|
||||||
eqDomains.forEach((eqDomain) => {
|
eqDomains.forEach((eqDomain) => {
|
||||||
if (eqDomain.length && eqDomain.indexOf(domain) >= 0) {
|
try {
|
||||||
matches = matches.concat(eqDomain);
|
if (eqDomain.length && eqDomain.indexOf(domain) >= 0) {
|
||||||
|
matches = matches.concat(eqDomain);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
catch {}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!matches.length) {
|
if (!matches.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user