Handle <> etc. in __DIE__ handler messages.
authorSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 14:40:52 +0000 (14:40 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 14:40:52 +0000 (14:40 +0000)
html/ccbs.pm

index f09996a..915e950 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;