Bugzilla – Attachment 44905 Details for
Bug 15197
In Rancor, multiple &/</" characters not escaped on saving
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 15197: In Rancor, multiple &/</" characters not escaped on saving
PASSED-QA-Bug-15197-In-Rancor-multiple--characters.patch (text/plain), 1.33 KB, created by
Katrin Fischer
on 2015-11-17 11:37:20 UTC
(
hide
)
Description:
[PASSED QA] Bug 15197: In Rancor, multiple &/</" characters not escaped on saving
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-11-17 11:37:20 UTC
Size:
1.33 KB
patch
obsolete
>From d9d29d25508bcb2ad28723b8d5206f5987651374 Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <pianohacker@gmail.com> >Date: Tue, 10 Nov 2015 12:12:43 -0700 >Subject: [PATCH] [PASSED QA] Bug 15197: In Rancor, multiple &/</" characters > not escaped on saving > >Test plan: > > 1) On current master, create a record in Rancor containing multiple &, < or " characters ("A & B & C", for example). > 2) Try to save the record, it will silently fail. > 3) Apply this patch. > 4) The record should now save correctly. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Works well, record saved >No errors > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-record.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-record.js b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-record.js >index d795511..fb7be33 100644 >--- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-record.js >+++ b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-record.js >@@ -37,7 +37,7 @@ define( function() { > }; > > function _escape(str) { >- return str.replace( /[<&"]/, function (c) { return _escape_map[c] } ); >+ return str.replace( /[<&"]/g, function (c) { return _escape_map[c] } ); > } > > function _intpadded(i, digits) { >-- >1.9.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 15197
:
44894
|
44895
|
44896
|
44897
| 44905