made DFV and FromCGI warn instead of die on unexpected cgi params
added CGI params to TT error template
small improvements to some factory templates
made DFV and FromCGI warn instead of die on unexpected cgi params
added CGI params to TT error template
small improvements to some factory templates
- fix to path handling in mod_perl when location ends in /
+ fix to path handling in mod_perl and CGI when location ends in /
{
no warnings 'uninitialized';
$path .= '/' if $path eq $loc;
{
no warnings 'uninitialized';
$path .= '/' if $path eq $loc;
- $path =~ s/^($loc)?\///;
+ if ($loc =~ /\/$/) {
+ $path =~ s/^($loc)?//;
+ } else {
+ $path =~ s/^($loc)?\///;
+ }