From 99ba408e120be4d3e1b3979a63df273ff0653a6e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 19 Jul 2010 20:48:11 +0200 Subject: [PATCH] UCW::CGI: html_escape() should escape single quotes, too --- ucw/perl/UCW/CGI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ucw/perl/UCW/CGI.pm b/ucw/perl/UCW/CGI.pm index af5e2c5c..10650729 100644 --- a/ucw/perl/UCW/CGI.pm +++ b/ucw/perl/UCW/CGI.pm @@ -1,6 +1,6 @@ # Poor Man's CGI Module for Perl # -# (c) 2002--2009 Martin Mares +# (c) 2002--2010 Martin Mares # Slightly modified by Tomas Valla # # This software may be freely distributed and used according to the terms @@ -93,6 +93,7 @@ sub html_escape($) { $x =~ s//>/g; $x =~ s/"/"/g; + $x =~ s/'/'/g; return $x; } -- 2.39.2