Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-11-02 16:02:16 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-11-05 12:22:05 +0300
commitb3aa3958daf8b34a7c6b5367cdb705b6164427b0 (patch)
treefdd5dbf6da98c8ab746732eb0653511ae855d877
parent3063d74b86f9adb20a689c753d5698391c2a2044 (diff)
Backport #32045
tests: fix sanitizer test. The test template does not include a `script` tag so the test always returned true.
-rw-r--r--js/tests/unit/tooltip.js2
1 files changed, 1 insertions, 1 deletions
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) {