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: v5.0.0-alpha1~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5638499abafdb0971c2a61cf6e19ac2b4a0e1b24;p=thirdparty%2Fbootstrap.git sanitizer.js: Add srcset in the allowed attributes (#29968) --- diff --git a/js/src/util/sanitizer.js b/js/src/util/sanitizer.js index 58caeb4864..f86cbe88a6 100644 --- a/js/src/util/sanitizer.js +++ b/js/src/util/sanitizer.js @@ -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: [],