Skip to content

Commit 5fee6fd

Browse files
committed
Autocomplete demo: Combobox: Encode search term inside tooltips. Fixes #8859 - Autocomplete: XSS in combobox demo.
1 parent c4b7c75 commit 5fee6fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: demos/autocomplete/combobox.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
// remove invalid value, as it didn't match anything
6262
$( element )
6363
.val( "" )
64-
.attr( "title", value + " didn't match any item" )
64+
.attr( "title", $( "<a>" ).text( value ).html() + " didn't match any item" )
6565
.tooltip( "open" );
6666
select.val( "" );
6767
setTimeout(function() {

0 commit comments

Comments
 (0)