From b3059dd3e871de3bc34fa3ee7ab9730c034f22df Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 11 Jun 2010 17:29:46 -0500 Subject: Remove action when submitting to same URL It looks like the `action="."` business was screwing up some browsers, notably lynx and links. We don't need it as the default is to submit to the same page anyway, so kill this gunk and see if it fixes a login CSRF issue. Signed-off-by: Dan McGee --- templates/devel/profile.html | 2 +- templates/general_form.html | 2 +- templates/mirrors/index.html | 2 +- templates/news/add.html | 2 +- templates/news/delete.html | 2 +- templates/packages/flag.html | 2 +- templates/registration/login.html | 2 +- templates/todolists/todolist_confirm_delete.html | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/devel/profile.html b/templates/devel/profile.html index 2c1c658d..0dde9349 100644 --- a/templates/devel/profile.html +++ b/templates/devel/profile.html @@ -6,7 +6,7 @@

Developer Profile

-
{% csrf_token %} + {% csrf_token %}
Username: {{ user.username }} {{ form.as_p }} diff --git a/templates/general_form.html b/templates/general_form.html index 93e73aca..12b35463 100644 --- a/templates/general_form.html +++ b/templates/general_form.html @@ -8,7 +8,7 @@

{{title}}

{% if description %}{{description}}{% endif %} - {% csrf_token %} + {% csrf_token %}
{% for field in form %}


diff --git a/templates/mirrors/index.html b/templates/mirrors/index.html index 55c172d7..f386ea46 100644 --- a/templates/mirrors/index.html +++ b/templates/mirrors/index.html @@ -13,7 +13,7 @@

Pacman Mirrorlist Generator

Simply replace the contents of /etc/pacman.d/mirrorlist with the generated code.

- {% csrf_token %} + {% csrf_token %} {{ mirrorlist_form.as_p }}

diff --git a/templates/news/add.html b/templates/news/add.html index 04a55689..9b2ebae4 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -10,7 +10,7 @@

News: Edit Article

News: Add Article

{% endif %} -
{% csrf_token %} + {% csrf_token %}
{{ form.as_p }}
diff --git a/templates/news/delete.html b/templates/news/delete.html index 3e3ba95e..191c6929 100644 --- a/templates/news/delete.html +++ b/templates/news/delete.html @@ -14,7 +14,7 @@

News: Delete Entry Confirmation

Are you sure?

- {% csrf_token %} + {% csrf_token %}

diff --git a/templates/packages/flag.html b/templates/packages/flag.html index 9a5b123b..b459819f 100644 --- a/templates/packages/flag.html +++ b/templates/packages/flag.html @@ -31,7 +31,7 @@

Flag Package: {{ pkg.pkgname }}

Please confirm your flag request for {{pkg.pkgname}}:

-
{% csrf_token %} + {% csrf_token %}
{{ form.as_p }}
diff --git a/templates/registration/login.html b/templates/registration/login.html index 867910ba..ad1ac1ea 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -10,7 +10,7 @@

Developer Login

{% endif %} - {% csrf_token %} + {% csrf_token %}
Enter login credentials {{ form.as_p }} diff --git a/templates/todolists/todolist_confirm_delete.html b/templates/todolists/todolist_confirm_delete.html index 39c9f0da..26cc4b8b 100644 --- a/templates/todolists/todolist_confirm_delete.html +++ b/templates/todolists/todolist_confirm_delete.html @@ -14,7 +14,7 @@

Delete Todo List: {{object.name}}

Are you sure?

- {% csrf_token %} + {% csrf_token %}

-- cgit v1.2.3-54-g00ecf