Skip to content
Snippets Groups Projects
Commit 8d690ea9 authored by mathieugrimault's avatar mathieugrimault Committed by Demian Katz
Browse files

chr(8) can cause an error (#1289)

parent 753c3f8f
No related merge requests found
...@@ -855,7 +855,7 @@ trait MarcAdvancedTrait ...@@ -855,7 +855,7 @@ trait MarcAdvancedTrait
if ($format == 'marc21') { if ($format == 'marc21') {
$xml = $this->getMarcRecord()->toXML(); $xml = $this->getMarcRecord()->toXML();
$xml = str_replace( $xml = str_replace(
[chr(27), chr(28), chr(29), chr(30), chr(31)], ' ', $xml [chr(27), chr(28), chr(29), chr(30), chr(31), chr(8)], ' ', $xml
); );
$xml = simplexml_load_string($xml); $xml = simplexml_load_string($xml);
if (!$xml || !isset($xml->record)) { if (!$xml || !isset($xml->record)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment