Subject: | mason1.45, perl5.12.2 - unititialized value showing up on every request |
Date: | Tue, 5 Oct 2010 10:08:20 +0200 |
To: | <bug-HTML-Mason [...] rt.cpan.org> |
From: | Morten Bjørnsvik <morten.bjornsvik [...] experian-da.no> |
Hi
I get this error one every request:
Use of uninitialized value in lc at /opt/perl/lib/site_perl/5.12.2/HTML/Mason/ApacheHandler.pm line 914, <GEN4> line 37.
The fix is to add a defined test before checking:
% diff /opt/perl/lib/site_perl/5.12.2/HTML/Mason/ApacheHandler.pm.new \
/opt/perl/lib/site_perl/5.12.2/HTML/Mason/ApacheHandler.pm
914c914
< if ( defined $_[0]->dir_config('Filter') && lc $_[0]->dir_config('Filter') eq 'on' )
---
Show quoted text
> if ( lc $_[0]->dir_config('Filter') eq 'on' )
Perl -- 5.12.2
HTML::Mason -- 1.45
No Apache::Filter installed
Thanks
----------------------------------------------------------------
Morten Bjørnsvik, Experian Decision Analytics AS
Sørkedalsveien 10c, Postbox 5275 Majorstua, 0303 Oslo, Norway
----------------------------------------------------------------