blib/lib/Eidolon/Core/CGI.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 17 | 39 | 43.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
88 | 0 | 1 | 2 | $ENV{'REQUEST_METHOD'} and uc $ENV{'REQUEST_METHOD'} eq 'POST' |
121 | 2 | 2 | 1 | $stage and $fh |
130 | 3 | 0 | 2 | $stage == 1 and /^Content-Disposition: form-data; name="?([^"\s;]+)"?(?:; (filename)="?([^"\s;]*)"?)?\r\n$/o |
167 | 2 | 0 | 1 | $stage == 2 and /^Content-Type: ([^\r\n]+)\r\n$/o |
209 | 0 | 0 | 0 | -f $filename and time - (stat $filename)[9] < $$self{'session_time'} |
315 | 0 | 0 | 1 | $name and $self->get_file($name) |
line | l | !l | condition |
---|---|---|---|
28 | 3 | 0 | $$cfg{'cgi'}{'max_post_size'} || 6553600 |
3 | 0 | $$cfg{'cgi'}{'tmp_dir'} || '/tmp/' | |
3 | 0 | $$cfg{'cgi'}{'session_cookie'} || 'SESSIONID' | |
3 | 0 | $$cfg{'cgi'}{'session_time'} || 3600 | |
3 | 0 | $$cfg{'cgi'}{'content_type'} || 'text/html' | |
3 | 0 | $$cfg{'cgi'}{'charset'} || 'UTF-8' | |
364 | 0 | 0 | $expires ||= 0 |
365 | 0 | 0 | $path ||= '/' |
366 | 0 | 0 | $domain ||= '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
141 | 1 | 0 | 0 | ">$filename" || 'CoreError::CGI::FileSave'->throw |