]> git.sesse.net Git - ccbs/blobdiff - html/ccbs.pm
Handle <> etc. in __DIE__ handler messages.
[ccbs] / html / ccbs.pm
index f09996a1935ca1ef345d7421462cd166456b51cd..915e9507f1ffa99f24924c8020db2a496eb589b2 100755 (executable)
@@ -2,6 +2,7 @@ package ccbs;
 use Template;
 use CGI;
 use DBI;
+use HTML::Entities;
 use strict;
 use warnings;
 
@@ -92,7 +93,7 @@ $SIG{__DIE__} = sub {
 
        ccbs::print_header();
        ccbs::process_template('error.tmpl', 'Internal Server Error',
-               { message => $msg });
+               { message => HTML::Entities::encode_entities($msg) });
 };
 
 1;