]> git.koha-community.org Git - koha.git/commit
bug 5301: improve escaping of XML characters in bib output
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 27 Oct 2010 12:24:04 +0000 (08:24 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Nov 2010 19:31:47 +0000 (08:31 +1300)
commitf88f88dcc58f984f416c160a7a881077169fc8e5
tree8bcd227a4ee6c5dfd16f5a02a860971e387abed9
parent8893e38c6e8b9fe0f43233163a6502932236063b
bug 5301: improve escaping of XML characters in bib output

<, >, ', or " in an item call number will no longer make
the bib displays break when using XSLT mode.

Added a new routine to C4::Koha, xml_escape(), to implement
converting &, <, >, ', and " to their corresponding
entities.

Patch loosely based on work done by Daniel Latrémolière <daniel.latremoliere@bulac.fr>

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Koha.pm
C4/XSLT.pm
t/Koha.t