Skip to content

Commit 77ee28e

Browse files
committed
Fix: Remove escaping of quotes for search input
* Previously the filter builder was created as a string, so we had to escape quotes, otherwise it could create invalid HTML. That is no longer the case as we are using jQuery DOM manipulation, so the escape is redundant and potentially harmful * See thread 21197
1 parent 0fc5cba commit 77ee28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/core/core.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function _fnFeatureHtmlFilter ( settings )
4444
}
4545
};
4646
var jqFilter = $('input', filter)
47-
.val( previousSearch.sSearch.replace('"','"') )
47+
.val( previousSearch.sSearch )
4848
.bind(
4949
'keyup.DT search.DT input.DT paste.DT cut.DT',
5050
_fnDataSource( settings ) === 'ssp' ?

0 commit comments

Comments
 (0)