Bugzilla – Attachment 162280 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: Add apos and quot to escapeHtml core function
Bug-36047-Add-apos-and-quot-to-escapeHtml-core-fun.patch (text/plain), 1008 bytes, created by
Pedro Amorim
on 2024-02-19 17:09:20 UTC
(
hide
)
Description:
Bug 36047: Add apos and quot to escapeHtml core function
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-02-19 17:09:20 UTC
Size:
1008 bytes
patch
obsolete
>From 245fb2e8c431630203fdc5ea5bb1813d82cd742e Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 19 Feb 2024 17:08:49 +0000 >Subject: [PATCH] Bug 36047: Add apos and quot to escapeHtml core function > >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index ab24a9304e2..4336b667c6e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -19,10 +19,12 @@ function formatstr(str, col) { > var HtmlCharsToEscape = { > '&': '&', > '<': '<', >- '>': '>' >+ '>': '>', >+ "'": ''', >+ '"': '"' > }; > String.prototype.escapeHtml = function() { >- return this.replace(/[&<>]/g, function(c) { >+ return this.replace(/["'&<>]/g, function(c) { > return HtmlCharsToEscape[c] || c; > }); > }; >-- >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