From 8d690ea98cc81bd460d9962c4e202e0d78283f3c Mon Sep 17 00:00:00 2001 From: mathieugrimault <30295397+mathieugrimault@users.noreply.github.com> Date: Thu, 13 Dec 2018 19:52:49 +0100 Subject: [PATCH] chr(8) can cause an error (#1289) --- module/VuFind/src/VuFind/RecordDriver/MarcAdvancedTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/RecordDriver/MarcAdvancedTrait.php b/module/VuFind/src/VuFind/RecordDriver/MarcAdvancedTrait.php index d6afe45a08b..5d0bd86e54e 100644 --- a/module/VuFind/src/VuFind/RecordDriver/MarcAdvancedTrait.php +++ b/module/VuFind/src/VuFind/RecordDriver/MarcAdvancedTrait.php @@ -855,7 +855,7 @@ trait MarcAdvancedTrait if ($format == 'marc21') { $xml = $this->getMarcRecord()->toXML(); $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); if (!$xml || !isset($xml->record)) { -- GitLab