Bugzilla – Attachment 103782 Details for
Bug 25291
Barcode should be escaped everywhere in html code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25291: Escape barcode in ReturnClaims table display
Bug-25291-Escape-barcode-in-ReturnClaims-table-dis.patch (text/plain), 1.48 KB, created by
Didier Gautheron
on 2020-04-27 12:55:20 UTC
(
hide
)
Description:
Bug 25291: Escape barcode in ReturnClaims table display
Filename:
MIME Type:
Creator:
Didier Gautheron
Created:
2020-04-27 12:55:20 UTC
Size:
1.48 KB
patch
obsolete
>From 53aff9b958eca03d22043768dc53fdd535f44a2e Mon Sep 17 00:00:00 2001 >From: Didier Gautheron <didier.gautheron@biblibre.com> >Date: Mon, 27 Apr 2020 14:42:49 +0200 >Subject: [PATCH] Bug 25291: Escape barcode in ReturnClaims table display > >--- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index e18c2a24c9..576a1d8f70 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -908,7 +908,13 @@ $(document).ready(function() { > if ( oObj.author ) { > title += ' by ' + oObj.author; > } >- title += ' <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=' + oObj.biblionumber + '&itemnumber=' + oObj.itemnumber + '">' + oObj.barcode + '</a>'; >+ title += ' <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=' >+ + oObj.biblionumber >+ + '&itemnumber=' >+ + oObj.itemnumber >+ + '">' >+ + (oObj.barcode ? oObj.barcode.escapeHtml() : "") >+ + '</a>'; > > return title; > } >-- >2.11.0
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 25291
:
103782
|
103783
|
103785
|
103794
|
103796