#15493 closed (fixed)
extras/csrf_migration_helper.py parsing improvement
| Reported by: | John Hensley | Owned by: | nobody |
|---|---|---|---|
| Component: | Uncategorized | Version: | 1.2 |
| Severity: | Keywords: | CSRF | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The extras/csrf_migration_helper.py script requires that the {% csrf_token %} template tag appear on the same line as the opening <form> tag.
This patch reworks the parsing to find the token anywhere within the form.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Patch to find the CSRF token anywhere in the form.