mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 18:25:32 +00:00
fix(search): Fix possible reflected XSS attack vector (#16522)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user