X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4e1806ef7c002a4a333c5822c13d7ceca303bf70..b84854289f508404f15612328b89ad0627569f49:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 5baa6c179..b6923b54f 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -460,6 +460,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
");