Merge pull request #34281 from sokumon/template-injection-xss
fix(xss): sanitize on input itself
This commit is contained in:
commit
73ff731b41
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ frappe.search.AwesomeBar = class AwesomeBar {
|
|||
"input",
|
||||
frappe.utils.debounce(function (e) {
|
||||
var value = e.target.value;
|
||||
value = frappe.utils.xss_sanitise(value);
|
||||
var txt = value.trim().replace(/\s\s+/g, " ");
|
||||
var last_space = txt.lastIndexOf(" ");
|
||||
me.global_results = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue