• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

preaction / Yancy / 634
79%

Build:
DEFAULT BRANCH: master
Ran 18 Apr 2020 03:18PM UTC
Jobs 1
Files 18
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
634

push

travis-ci

preaction
verify form has real request for csrf token

If the `form_for` helper is called with `app`
(`app->yancy->form->form_for(...)`), it will generate a new CSRF token
that will not be sent back to the user. Then when the user submits the
form, CSRF validation will fail.

Now the plugin validates that it has a real request by checking the
`remote_address` from the Mojo::Transaction object.

Additionally, you can now disable CSRF tokens in the form by using `csrf
=> 0`.

Thanks @pavelsr for reporting this issue! Fixes #95

1209 of 1273 relevant lines covered (94.97%)

244.24 hits per line

Jobs
ID Job ID Ran Files Coverage
10 634.10 (COVERAGE=1) 18 Apr 2020 03:18PM UTC 0
94.97
Travis Job 634.10
Source Files on build 634
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #634
  • 1c56a63c on github
  • Prev Build on master (#631)
  • Next Build on master (#635)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc