blib/lib/Apache/AxKit/Plugin/NotFoundIfPathInfo.pm

filter: Statementstmt 66.6% 4 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 75.0% 6 / 8 CC 1 SCAR 1.4
CC
1
Cov
67%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package Apache::AxKit::Plugin::NotFoundIfPathInfo;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 0 ▶use Apache::Constants qw(OK NOT_FOUND);
Subroutine BEGIN: called CC=1 SCAR=2.6
5 use Apache::Request;
6  
7 our $VERSION = '1.01';
8  
9 sub handler {
10 my $r = shift;
11 if (length($r->path_info)) {
12 $r->log->error("File does not exist: " . $r->filename . $r->path_info);
13 return NOT_FOUND;
14 }
15 else {
16 return OK;
17 }
18 }
19  
20 1;
21 __END__
↑ Summary