mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-10 23:14:13 +00:00
Sanitize search input (#3591)
* Sanitize search input - Remove ASCII and unicode control characters * js linting * Simplified regex * Sanitize modal form fields also
This commit is contained in:
@ -98,7 +98,9 @@ var searchQueries = [];
|
||||
|
||||
function searchTextChanged(event) {
|
||||
|
||||
searchText = $('#offcanvas-search').find('#search-input').val();
|
||||
var text = $('#offcanvas-search').find('#search-input').val();
|
||||
|
||||
searchText = sanitizeInputString(text);
|
||||
|
||||
clearTimeout(searchInputTimer);
|
||||
searchInputTimer = setTimeout(updateSearch, 250);
|
||||
|
Reference in New Issue
Block a user