From: XhmikosR Date: Tue, 7 Jan 2020 20:46:28 +0000 (+0200) Subject: sanitizer.js: Add srcset in the allowed attributes (#29968) X-Git-Tag: v4.5.0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=411922b14dd9e3a1686e9fca00ddb1abc8b2e43b;p=thirdparty%2Fbootstrap.git sanitizer.js: Add srcset in the allowed attributes (#29968) --- diff --git a/js/src/tools/sanitizer.js b/js/src/tools/sanitizer.js index 797159bcc0..0e83bde477 100644 --- a/js/src/tools/sanitizer.js +++ b/js/src/tools/sanitizer.js @@ -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: [],