koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/C4 Biblio.pm [rel_2_2]


From: Joshua Ferraro
Subject: [Koha-cvs] koha/C4 Biblio.pm [rel_2_2]
Date: Wed, 08 Mar 2006 16:50:15 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Joshua Ferraro <address@hidden> 06/03/08 16:50:15

Modified files:
        C4             : Biblio.pm 

Log message:
        re-adding paul's fix for improper XML characters.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/Biblio.pm.diff?only_with_tag=rel_2_2&tr1=1.115.2.47&tr2=1.115.2.48&r1=text&r2=text

Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.115.2.47 koha/C4/Biblio.pm:1.115.2.48
--- koha/C4/Biblio.pm:1.115.2.47        Wed Mar  8 16:39:01 2006
+++ koha/C4/Biblio.pm   Wed Mar  8 16:50:14 2006
@@ -1045,6 +1045,12 @@
     my $first=1;
        my $j = -1;
     for (my $i=0;$i<address@hidden;$i++){
+               @$values[$i] =~ s/&/&amp;/g;
+               @$values[$i] =~ s/</&lt;/g;
+               @$values[$i] =~ s/>/&gt;/g;
+               @$values[$i] =~ s/"/&quot;/g;
+               @$values[$i] =~ s/'/&apos;/g;
+
                if ((@$tags[$i] ne $prevtag)){
                        $j++ unless (@$tags[$i] eq "");
                        #warn 
"IND:".substr(@$indicator[$j],0,1).substr(@$indicator[$j],1,1)." 
"address@hidden;
@@ -2993,8 +2999,11 @@
 
 =cut
 
-# $Id: Biblio.pm,v 1.115.2.47 2006/03/08 16:39:01 kados Exp $
+# $Id: Biblio.pm,v 1.115.2.48 2006/03/08 16:50:14 kados Exp $
 # $Log: Biblio.pm,v $
+# Revision 1.115.2.48  2006/03/08 16:50:14  kados
+# re-adding paul's fix for improper XML characters.
+#
 # Revision 1.115.2.47  2006/03/08 16:39:01  kados
 # removing blank subfield values
 #




reply via email to

[Prev in Thread] Current Thread [Next in Thread]