Subject: | warning on undef PATH_INFO in Plack::Handler::Apache2 |
Date: | Wed, 18 Aug 2010 10:10:34 -0400 |
To: | bug-Plack [...] rt.cpan.org |
From: | jay mortensen <jay [...] purplewire.com> |
apache 2.2.3
perl 5.8.8
Plack-0.9944-4Xtn2X from cpan
in the cases where apache2 PATH_INFO is "empty" as described in
http://gist.github.com/187070,
it's actually undef rather than '', so the concatenation operator in
Plack::Handler::Apache2 line 80
throws a warning that fills up my error_log
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.8/Plack/Handler/Apache2.pm line 80.
i think the fix is simple, something like:
my $vpath = $env->{SCRIPT_NAME} . ($env->{PATH_INFO} || '');
regards,
jay
--
We can lick gravity, but sometimes the paperwork is overwhelming.
- Wernher von Braun
///////////////////////////////////////////////////////////////
Jay Mortensen (315) 234-0079 x303
Chief Technology Officer jay@purplewire.com
Purplewire http://www.purplewire.com/
///////////////////////////////////////////////////////////////