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 2c1c658..0dde934 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 93e73ac..12b3546 100644 --- a/templates/general_form.html +++ b/templates/general_form.html @@ -8,7 +8,7 @@ {% 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 55c172d..f386ea4 100644 --- a/templates/mirrors/index.html +++ b/templates/mirrors/index.html @@ -13,7 +13,7 @@ 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 04a5568..9b2ebae 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -10,7 +10,7 @@

News: Add Article

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

Are you sure?

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

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

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 867910b..ad1ac1e 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -10,7 +10,7 @@ {% 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 39c9f0d..26cc4b8 100644 --- a/templates/todolists/todolist_confirm_delete.html +++ b/templates/todolists/todolist_confirm_delete.html @@ -14,7 +14,7 @@

Are you sure?

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

-- cgit v1.2.3-24-g4f1b