From 6c611df8f0a7b3a360fd23d1e68eb8a709e0ce53 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 25 Feb 2013 10:02:28 -0800 Subject: fix($compile): whitelist file:// in url sanitization --- test/ng/compileSpec.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 0b77be30..ddcd8270 100644 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -2484,6 +2484,10 @@ describe('$compile', function() { $rootScope.testUrl = "mailto:foo@bar.com"; $rootScope.$apply(); expect(element.attr('href')).toBe('mailto:foo@bar.com'); + + $rootScope.testUrl = "file:///foo/bar.html"; + $rootScope.$apply(); + expect(element.attr('href')).toBe('file:///foo/bar.html'); })); -- cgit v1.2.3