[PATCH 1/1] templates: Add CSRF (cross-site request forgery) values to form posts
John 'Warthog9' Hawley
warthog9 at kernel.org
Fri Jun 25 02:38:06 EST 2010
This is a fairly simple patch, basically it does what the error message
told me to do:
"add In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL."
Signed-off-by: John 'Warthog9' Hawley <warthog9 at kernel.org>
---
templates/patchwork/bundle.html | 1 +
templates/patchwork/bundles.html | 1 +
templates/patchwork/patch-form.html | 4 ++++
templates/patchwork/patch-list.html | 2 ++
templates/patchwork/patch.html | 5 +++++
templates/patchwork/patchlist.html | 1 +
templates/patchwork/profile.html | 3 +++
templates/patchwork/user-link.html | 1 +
templates/registration/login.html | 1 +
templates/registration/registration_form.html | 1 +
10 files changed, 20 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-templates-Add-CSRF-cross-site-request-forgery-values.patch
Type: text/x-patch
Size: 7024 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20100624/9f1f10f6/attachment.bin>
More information about the Patchwork
mailing list