Translated & to & in xmlrecord

If the homebranch tag had an & in its name, then the XML wouldn't parse
correctly.  As a result, if XSLT was turned on, "No copies available" would
always be displayed.
This commit is contained in:
David Birmingham 2009-12-02 16:23:07 -05:00 committed by Henri-Damien LAURENT
parent 1d9de57e23
commit 77141dab35
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ sub XSLTParse4Display {
}
$sysxml .= "</sysprefs>\n";
$xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/;
$xmlrecord =~ s/\& /\&amp\; /;
my $parser = XML::LibXML->new();
# don't die when you find &, >, etc