From: Steinar H. Gunderson Date: Wed, 16 Feb 2005 14:40:52 +0000 (+0000) Subject: Handle <> etc. in __DIE__ handler messages. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=733351b88646c5414f7df5925c983cd854396fe2;ds=sidebyside Handle <> etc. in __DIE__ handler messages. --- diff --git a/html/ccbs.pm b/html/ccbs.pm index f09996a..915e950 100755 --- a/html/ccbs.pm +++ b/html/ccbs.pm @@ -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;