Backport #32045
tests: fix sanitizer test. The test template does not include a `script` tag so the test always returned true.
This commit is contained in:
parent
3063d74b86
commit
b3aa3958da
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue