X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d922b1897c81db10b5b8a48d4b92e56a92d12448..f282512da75d19e38933f3083afa3c2a9dad463c:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index f448db6ef..a6c0c2712 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -491,6 +491,9 @@ sub cgi (;$$) { sub cgierror ($) { my $message=shift; + eval q{use HTML::Entities}; + $message = encode_entities($message); + print "Content-type: text/html\n\n"; print cgitemplate(undef, gettext("Error"), "
".gettext("Error").": $message
");