Bugzilla – Attachment 162285 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.85 KB, created by
Phan Tung Bui
on 2024-02-19 21:39:25 UTC
(
hide
)
Description:
Bug 36047: filter jQuery selector through escapeHtml
Filename:
MIME Type:
Creator:
Phan Tung Bui
Created:
2024-02-19 21:39:25 UTC
Size:
1.85 KB
patch
obsolete
>From ebfd98650b6660bc02b7c8f252d0a59c4073791f 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 > >Signed-off-by: Phan Tung Bui <phan-tung.bui@inlibro.com> >--- > 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 eb834ea4c2..b53a18a7b8 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.34.1
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