fix: update to latest version of sanitize-url

There's been a bunch of security issues in the older versions of sanitize-url that this resolves.
This commit is contained in:
Dirkjan Bussink
2022-03-03 14:51:20 +01:00
parent 6223d3c470
commit 7b0c3c3cd5
4 changed files with 10 additions and 10 deletions

View File

@@ -250,7 +250,7 @@ describe('when formatting urls', function () {
config.securityLevel = 'strict';
result = utils.formatUrl(url, config);
expect(result).toEqual('about:blank');
expect(result).toEqual(url);
});
it('should handle mailto', function () {
const url = 'mailto:user@user.user';