X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FXMLPage.pm;h=853ef42e7e48a1019f9f90c025da0fa3fc6947b1;hb=7dcdd7e02acf397d9cae7f9c435ace1f7b837d67;hp=b7e70151488fe02f7d40c349e13aa8fe0c0e0fb5;hpb=50cdad189ed7bc2713c21931d047184ed7efe9b4;p=ndwebbie.git diff --git a/ND/Web/XMLPage.pm b/ND/Web/XMLPage.pm index b7e7015..853ef42 100644 --- a/ND/Web/XMLPage.pm +++ b/ND/Web/XMLPage.pm @@ -129,6 +129,7 @@ sub render : method { $template->param(Error => $ND::ERROR); $template->param(BODY => $body->output); my $output = $template->output; + $output =~ s/[^\x{9}\x{A}\x{D}\x{20}-\x{D7FF}\x{E000}-\x{FFFD}\x{10000}-\x{10FFFF}]//g; print header(-type=> $type, -charset => 'utf-8', -Content_Length => length $output); print $output; };