Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit a4dfa4d

Browse files
IgorMinarpetebacondarwin
authored andcommitted
fix($sanitize): strip urls starting with 'unsafe:' as opposed to 'unsafe'
Closes #12524
1 parent bc0d8c4 commit a4dfa4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngSanitize/sanitize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function $SanitizeProvider() {
149149
return function(html) {
150150
var buf = [];
151151
htmlParser(html, htmlSanitizeWriter(buf, function(uri, isImage) {
152-
return !/^unsafe/.test($$sanitizeUri(uri, isImage));
152+
return !/^unsafe:/.test($$sanitizeUri(uri, isImage));
153153
}));
154154
return buf.join('');
155155
};

0 commit comments

Comments
 (0)