mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
The domain of data URLs should be null. (#59)
This commit is contained in:
@@ -182,6 +182,10 @@ export class Utils {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (uriString.startsWith('data:')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let httpUrl = uriString.startsWith('http://') || uriString.startsWith('https://');
|
||||
if (!httpUrl && uriString.indexOf('://') < 0 && Utils.tldEndingRegex.test(uriString)) {
|
||||
uriString = 'http://' + uriString;
|
||||
|
||||
Reference in New Issue
Block a user