blib/lib/Mojolicious/Plugin/CSRFDefender.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 17 | 94.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
88 | 14 | 4 | 2 | $c->req->method eq 'POST' and $self->onetime |
line | l | !l | condition |
---|---|---|---|
27 | 5 | 0 | $conf ||= {} |
30 | 1 | 4 | $$conf{'parameter_name'} || 'csrftoken' |
31 | 1 | 4 | $$conf{'session_key'} || 'csrftoken' |
32 | 1 | 4 | $$conf{'token_length'} || 32 |
33 | 1 | 4 | $$conf{'error_status'} || 403 |
34 | 1 | 4 | $$conf{'error_content'} || 'Forbidden' |
35 | 1 | 4 | $$conf{'onetime'} || 0 |