Fixed warning in Engine::CGI when PATH_INFO is undef
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / CGI.pm
index 9f6698d..fae6a9a 100644 (file)
@@ -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;