From fa7ca5c8b8b5fdf27fae63fd0ada7fe539651bc2 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sat, 26 Mar 2011 05:58:54 -0400 Subject: [PATCH] Bug 3326: Staff results still displayed & In certain circumstances, ampersands would not be displayed properly in the Staff client search results. This patch fixes that by ensuring that all the doubled ampersands that Zebra inserts in XML indexing mode are replaced by the correct single ampersand entity. Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- C4/Output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index 9f5ed5e087..a6cb984f66 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -474,7 +474,7 @@ sub output_with_http_headers($$$$;$) { sub output_html_with_http_headers ($$$;$) { my ( $query, $cookie, $data, $status ) = @_; - $data =~ s/\&\;amp\; /\&\; /; + $data =~ s/\&\;amp\; /\&\; /g; output_with_http_headers( $query, $cookie, $data, 'html', $status ); } -- 2.39.5