Bugzilla – Attachment 2687 Details for
Bug 5301
In C4/XSLT.pm, itemcallnumber can contain special XML characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Complete patch (for all XML special characters except ampersand)
itemcallnumber-full.patch (text/plain), 668 bytes, created by
Daniel Latrémolière
on 2010-10-13 14:28:37 UTC
(
hide
)
Description:
Complete patch (for all XML special characters except ampersand)
Filename:
MIME Type:
Creator:
Daniel Latrémolière
Created:
2010-10-13 14:28:37 UTC
Size:
668 bytes
patch
obsolete
>diff --git a/lib/C4/XSLT.pm b/lib/C4/XSLT.pm >index 1c45e44..95a50ae 100644 >--- a/lib/C4/XSLT.pm >+++ b/lib/C4/XSLT.pm >@@ -213,6 +213,10 @@ sub buildKohaItemsNamespace { > my $homebranch = $branches->{$item->{homebranch}}->{'branchname'}; > my $itemcallnumber = $item->{itemcallnumber} || ''; > $itemcallnumber =~ s/\&/\&\;/g; >+ $itemcallnumber =~ s/\</\<\;/g; >+ $itemcallnumber =~ s/\>/\>\;/g; >+ $itemcallnumber =~ s/'/\&apos\;/g; >+ $itemcallnumber =~ s/"/\"\;/g; > $xml.= "<item><homebranch>$homebranch</homebranch>". > "<status>$status</status>". > "<itemcallnumber>".$itemcallnumber."</itemcallnumber>"
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 5301
:
2686
|
2687
|
2702