From: XhmikosR Date: Mon, 2 Nov 2020 13:02:16 +0000 (+0200) Subject: Backport #32045 X-Git-Tag: v4.6.0~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3aa3958daf8b34a7c6b5367cdb705b6164427b0;p=thirdparty%2Fbootstrap.git Backport #32045 tests: fix sanitizer test. The test template does not include a `script` tag so the test always returned true. --- diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index fb308cf388..4f55007c71 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -1170,7 +1170,7 @@ $(function () { }) var tooltip = $trigger.data('bs.tooltip') - assert.strictEqual(tooltip.config.template.indexOf('script'), -1) + assert.strictEqual(tooltip.config.template.indexOf('href="javascript:alert(7)"'), -1) }) QUnit.test('should allow custom sanitization rules', function (assert) {