Bugzilla – Attachment 162281 Details for
Bug 36047
Apostrophe in suggestion status reason blocks order receipt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36047: filter jQuery selector through escapeHtml
Bug-36047-filter-jQuery-selector-through-escapeHtm.patch (text/plain), 1.80 KB, created by
Pedro Amorim
on 2024-02-19 17:09:23 UTC
(
hide
)
Description:
Bug 36047: filter jQuery selector through escapeHtml
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-02-19 17:09:23 UTC
Size:
1.80 KB
patch
obsolete
>From 9d9022cee5f15770a8cb141514190d0258580800 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 19 Feb 2024 17:09:15 +0000 >Subject: [PATCH] Bug 36047: filter jQuery selector through escapeHtml > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index eb834ea4c21..b53a18a7b88 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -696,7 +696,7 @@ > > if(row.biblio.suggestions.length && row.biblio.suggestions[0].reason) { > params["suggestionid"] = row.biblio.suggestions[0].suggestion_id; >- if($("#reason option[value='"+row.biblio.suggestions[0].reason+"']").length) { >+ if($("#reason option[value='"+row.biblio.suggestions[0].reason.escapeHtml()+"']").length) { > params['reason'] = row.biblio.suggestions[0].reason; > } else { > params['reason'] = 'other'; >@@ -1150,7 +1150,7 @@ > } > if(row.biblio.suggestions[0].reason) { > $("#suggestion_reason").show(); >- if($("#reason option[value='"+row.biblio.suggestions[0].reason+"']").length) { >+ if($("#reason option[value='"+row.biblio.suggestions[0].reason.escapeHtml()+"']").length) { > $("#other_reason a").click(); > $("#reason").val(row.biblio.suggestions[0].reason); > $("#select-other_reason").val(null); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36047
:
162243
|
162280
|
162281
|
162285
|
162337
|
162361