Skip Menu |

This queue is for tickets about the HTML-CGIChecker CPAN distribution.

Report information
The Basics
Id: 5339
Status: new
Priority: 0/
Queue: HTML-CGIChecker

People
Owner: Nobody in particular
Requestors: ceverett [...] ceverett.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: [patch] fixes warning message on mod_perl startup
Perl Version: 5.6.0 on. I get this error when I "use HTML::CGIChecker;" under mod_perl when I start my mod_perl server. "my" variable $class masks earlier declaration in same scope at /usr/local/share/perl/5.8.3/HTML/CGIChecker.pm line 513. The patch fixes it.
--- CGIChecker.pm.orig 2004-02-15 01:42:51.000000000 -0600 +++ CGIChecker.pm 2004-02-15 02:02:19.000000000 -0600 @@ -510,11 +510,10 @@ map ($_ = uc($_), @{$self->{'allowtags'}}); map ($_ = uc($_), @{$self->{'denytags'}}); - my $class; - foreach $class (keys(%tagclasses)) { - map ($_ = uc($_), @{$tagclasses{$class}}); + foreach my $members (values %tagclasses) { + map ($_ = uc($_), @$members); } - + map ($_ = uc($_), @{$self->{'nonpairtags'}}); my $element;