]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
sanitizer.js: Add srcset in the allowed attributes (#29968)
authorXhmikosR <xhmikosr@gmail.com>
Tue, 7 Jan 2020 20:46:28 +0000 (22:46 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 20:46:28 +0000 (22:46 +0200)
js/src/util/sanitizer.js

index 58caeb4864baacd5edae2e72f93e65234113e0fe..f86cbe88a6a2fd74e89b18fdd0e578582f10e4a0 100644 (file)
@@ -76,7 +76,7 @@ export const DefaultWhitelist = {
   h5: [],
   h6: [],
   i: [],
-  img: ['src', 'alt', 'title', 'width', 'height'],
+  img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
   li: [],
   ol: [],
   p: [],