]> 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)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 17 Feb 2020 19:33:54 +0000 (21:33 +0200)
js/src/tools/sanitizer.js

index 797159bcc07ea7c7835aaa687fdf85441cce5cfb..0e83bde477eb80d6997e995b5534fa19259cc022 100644 (file)
@@ -37,7 +37,7 @@ export const DefaultWhitelist = {
   h5: [],
   h6: [],
   i: [],
-  img: ['src', 'alt', 'title', 'width', 'height'],
+  img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
   li: [],
   ol: [],
   p: [],