From d6b620262f4dc883b14cedf0c4225d3ef145755e Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 3 Mar 2017 01:40:19 -0500 Subject: [PATCH] LP#1442276 Prevent corrupted Unicode chars in MARCTXT and RIS The MARCTXT and RIS feeds use the deprecated XML::LibXSLT::output_string() method which, depending on the stylesheet, generated either a byte string or characters. Using output_as_bytes() ensures it is always a byte string and avoids the resulting MARCTXT and RIS output from corrupting Unicode characters. Signed-off-by: Dan Scott Signed-off-by: Kathy Lussier --- Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm index 2cb401fb19..56146cb988 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm @@ -793,7 +793,7 @@ sub toString { searchClass => "'$class'", ); - return $marctxt_xslt->output_string($new_doc); + return $marctxt_xslt->output_as_bytes($new_doc); } @@ -845,7 +845,7 @@ sub toString { searchClass => "'$class'", ); - return $ris_xslt->output_string($new_doc); + return $ris_xslt->output_as_bytes($new_doc); } -- 2.43.2