1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-19 17:54:14 +01:00

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
This commit is contained in:
Allan Jardine 2014-05-23 16:30:37 +01:00
parent d6b54b4cde
commit de1d6541ef
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
6e60b4ee7b7683c94165c56e5b6a961100d60501
77ee28e07cf8b949f2650b800e0fca791d4b767f

View File

@ -2664,7 +2664,7 @@
}
};
var jqFilter = $('input', filter)
.val( previousSearch.sSearch.replace('"','"') )
.val( previousSearch.sSearch )
.bind(
'keyup.DT search.DT input.DT paste.DT cut.DT',
_fnDataSource( settings ) === 'ssp' ?