X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FCGI.pm;h=fae6a9aa000d778519d9f0a2885ab645f1ceebba;hp=9f6698d52a81643719743780e8495a856be64743;hb=e701c5c61735b6aae5332b16522bbc800a626896;hpb=051ac48f1617b9dbdaac105a0a87ead13b3a51ce diff --git a/lib/Catalyst/Engine/CGI.pm b/lib/Catalyst/Engine/CGI.pm index 9f6698d..fae6a9a 100644 --- a/lib/Catalyst/Engine/CGI.pm +++ b/lib/Catalyst/Engine/CGI.pm @@ -137,7 +137,7 @@ sub prepare_path { $port = $c->request->secure ? 443 : 80; } - my $path = $base_path . $ENV{PATH_INFO}; + my $path = $base_path . ( $ENV{PATH_INFO} || '' ); $path =~ s{^/+}{}; my $uri = URI->new;