Subject: | taint mode check against force_untaint will fail in perl versions < 5.8 |
Date: | Tue, 17 Apr 2007 15:05:20 -0400 |
To: | bug-HTML-Template [...] rt.cpan.org |
From: | Administrator <admin [...] photoresearchers.com> |
In Template.pm (v2.9), the following bit of code
# make sure taint mode is on if force_untaint flag is set
if ($options->{force_untaint} && ! ${^TAINT}) {
croak("HTML::Template->new() : 'force_untaint' option set but perl does not
run in taint mode!");
}
... will be triggered in version of perl < 5.8 even when running in taint mode
because the variable ${^TAINT} wasn't introduced until perl 5.8. You may want
to include a condition for the perl version as well here.