From b1ef63e5bfc0d3995245b42154686db1400b2c22 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 15 Oct 2006 03:26:50 +0000 Subject: Bug 206037: [SECURITY] Fix escaping/quoting in edit*.cgi scripts - Patch by Frédéric Buclin r=justdave a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Install/Requirements.pm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Bugzilla/Install/Requirements.pm') diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm index 06c8b557b..7dddefd75 100644 --- a/Bugzilla/Install/Requirements.pm +++ b/Bugzilla/Install/Requirements.pm @@ -125,6 +125,18 @@ use constant OPTIONAL_MODULES => [ name => 'SOAP::Lite', version => 0 }, + { + # Since Perl 5.8, we need the 'utf8_mode' method of HTML::Parser + # which has been introduced in version 3.39_92 and fixed in 3.40 + # to not complain when running Perl 5.6. + # This module is required by HTML::Scrubber. + name => 'HTML::Parser', + version => ($] >= 5.008) ? '3.40' : 0 + }, + { + name => 'HTML::Scrubber', + version => 0 + }, ]; # These are only required if you want to use Bugzilla with @@ -305,6 +317,17 @@ sub check_requirements { " " . install_command('Net::LDAP') . "\n\n"; } + # HTML filtering + if (!$have_mod{'HTML::Parser'} || !$have_mod{'HTML::Scrubber'}) { + print "If you want additional HTML tags within product and group", + " descriptions,\nyou should install:\n\n"; + print " HTML::Scrubber: " . install_command('HTML::Scrubber') . "\n" + if !$have_mod{'HTML::Scrubber'}; + print " HTML::Parser: " . install_command('HTML::Parser') . "\n" + if !$have_mod{'HTML::Parser'}; + print "\n"; + } + # mod_perl if (!$have_mod{'mod_perl2'}) { print "If you would like mod_perl support, you must install at", -- cgit v1.2.3-24-g4f1b