Fixed $c->request->cookie, and improved detection of registry scripts
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / Apache / Base.pm
index ce4b33f..ebb3148 100644 (file)
@@ -118,7 +118,7 @@ sub prepare_path {
 
         $path =~ s/^\///;
 
-        if ( $c->apache->filename && -x $c->apache->filename ) {
+        if ( $c->apache->filename && -f $c->apache->filename && -x _ ) {
 
             my $filename = ( File::Spec->splitpath( $c->apache->filename ) )[2];