From fe4b9d954595b480b6b73bff8adcd9f453bb9df8 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 31 Dec 2009 15:35:56 +0100 Subject: [PATCH] Adding NSB/NSE filters --- C4/Output.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index 788d89d4fd..0bb71b433d 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -383,7 +383,9 @@ sub output_html_with_http_headers ($$$;$$) { //gx; my $content_type = @_ ? shift : "text/html"; - my $status = shift; + $html =~ s/\x{C2}\x{98}|\x{C2}\x{9C}/ /g; + $html =~ s/\x{C2}\x{88}|\x{C2}\x{89}/ /g; + $content_type = "text/html" unless $content_type =~ m!/!; # very basic sanity check print $query->header( -status => $status, -- 2.39.5