From 733351b88646c5414f7df5925c983cd854396fe2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 16 Feb 2005 14:40:52 +0000 Subject: [PATCH] Handle <> etc. in __DIE__ handler messages. --- html/ccbs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2