mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 12:33:37 +08:00
chore(jshint): add missing scripturl directive
This commit is contained in:
@@ -31,6 +31,7 @@ describe('sanitizeUri', function() {
|
||||
});
|
||||
|
||||
it('should sanitize javascript: urls with comments', function() {
|
||||
/* jshint scripturl:true */
|
||||
testUrl = "javascript:alert(1)//data:image/";
|
||||
expect(sanitizeImg(testUrl)).toBe('unsafe:javascript:alert(1)//data:image/');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user