CGI/Application/Plugin/ProtectCSRF.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 15 | 46.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
227 | 0 | 0 | 4 | ref $args{'csrf_error_tmpl_param'} eq 'HASH' and keys %{$args{'csrf_error_tmpl_param'};} |
314 | 3 | 0 | 0 | $$self{'__CAP_PROTECT_CSRF_CONFIG'}{'csrf_post_only'} and $ENV{'REQUEST_METHOD'} ne 'POST' |
318 | 1 | 2 | 0 | $self->query->param($$self{'__CAP_PROTECT_CSRF_CONFIG'}{'csrf_id'}) && $self->csrf_id |
360 | 1 | 1 | 0 | $coderef and exists $publish_csrf_id_runmodes{$coderef} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
318 | 1 | 0 | 0 | not $self->query->param($$self{'__CAP_PROTECT_CSRF_CONFIG'}{'csrf_id'}) && $self->csrf_id or $self->query->param($$self{'__CAP_PROTECT_CSRF_CONFIG'}{'csrf_id'}) ne $self->csrf_id |