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 <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Jared Camins-Esakov 2011-03-26 05:58:54 -04:00 committed by Chris Cormack
parent b853b79001
commit fa7ca5c8b8
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ sub output_with_http_headers($$$$;$) {
sub output_html_with_http_headers ($$$;$) {
my ( $query, $cookie, $data, $status ) = @_;
$data =~ s/\&amp\;amp\; /\&amp\; /;
$data =~ s/\&amp\;amp\; /\&amp\; /g;
output_with_http_headers( $query, $cookie, $data, 'html', $status );
}