fix(search): Fix possible reflected XSS attack vector (#16522)
This commit is contained in:
parent
78fc158b39
commit
245b73b94f
@ -10,7 +10,7 @@
|
||||
<script>
|
||||
frappe.ready(function() {
|
||||
var txt = frappe.utils.get_url_arg("search");
|
||||
$(".search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "")|trim }}');
|
||||
$(".search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "") | e | trim }}');
|
||||
window.search = txt;
|
||||
window.start = 0;
|
||||
window.get_product_list();
|
||||
|
Loading…
x
Reference in New Issue
Block a user