line |
true |
false |
branch |
16
|
0 |
67 |
unless @_ <= 2 |
|
0 |
67 |
unless @_ >= 2 |
17
|
19 |
48 |
if $INSECURE_DIRS |
20
|
19 |
29 |
if not $dir or 'Mojo::Path'->new($app->home)->contains("$dir") |
25
|
0 |
70 |
unless @_ <= 1 |
|
0 |
70 |
unless @_ >= 1 |
26
|
22 |
48 |
if $INSECURE_IDS |
27
|
5 |
43 |
unless $id =~ m[^[\ \-\w/]+$]u |
32
|
0 |
41 |
unless @_ >= 2 |
37
|
0 |
43 |
unless @_ <= 3 |
|
0 |
43 |
unless @_ >= 3 |
38
|
2 |
41 |
unless defined $url_prefix |
41
|
19 |
22 |
unless io()->dir($dir)->is_absolute |
46
|
10 |
31 |
unless $dir =~ s/$prefix$//u |
51
|
0 |
32 |
unless @_ <= 3 |
|
0 |
32 |
unless @_ >= 3 |
52
|
9 |
23 |
unless my $static_path = calc_static($dir, $url_prefix, $app->home) |
55
|
9 |
11 |
unless grep {$_ eq $static_path;} @$paths |
59
|
0 |
19 |
unless @_ <= 3 |
|
0 |
19 |
unless @_ >= 3 |
62
|
18 |
1 |
if $$opts{'ext'} |
70
|
0 |
0 |
unless @_ <= 2 |
|
0 |
0 |
unless @_ >= 2 |
75
|
0 |
0 |
if $img->exists($id) or $img->sync($id) |