summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-11 17:29:46 -0500
committerDan McGee <dan@archlinux.org>2010-06-11 17:29:46 -0500
commitb3059dd3e871de3bc34fa3ee7ab9730c034f22df (patch)
tree9842753abf3503c37af809e7b15cec26da759b44
parent408288719e7515ac01c6eb81a5a2d9a1c63a62bc (diff)
downloadarchweb-b3059dd3e871de3bc34fa3ee7ab9730c034f22df.tar.gz
archweb-b3059dd3e871de3bc34fa3ee7ab9730c034f22df.zip
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 <dan@archlinux.org>
-rw-r--r--templates/devel/profile.html2
-rw-r--r--templates/general_form.html2
-rw-r--r--templates/mirrors/index.html2
-rw-r--r--templates/news/add.html2
-rw-r--r--templates/news/delete.html2
-rw-r--r--templates/packages/flag.html2
-rw-r--r--templates/registration/login.html2
-rw-r--r--templates/todolists/todolist_confirm_delete.html2
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 @@
<h2>Developer Profile</h2>
- <form id="edit-profile-form" method="post" action=".">{% csrf_token %}
+ <form id="edit-profile-form" method="post">{% csrf_token %}
<fieldset>
<legend>Username: <strong>{{ user.username }}</strong></legend>
{{ 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 @@
{% if description %}{{description}}{% endif %}
- <form class="general-form" method="post" action=".">{% csrf_token %}
+ <form class="general-form" method="post">{% csrf_token %}
<fieldset>
{% for field in form %}
<p><label>{{field.label}}{% if field.help_text %}:</label><br />
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 @@
Simply replace the contents of <code>/etc/pacman.d/mirrorlist</code> with
the generated code.</p>
- <form id="list-generator" method="post" action=".">{% csrf_token %}
+ <form id="list-generator" method="post">{% csrf_token %}
{{ mirrorlist_form.as_p }}
<p><label></label> <input type="submit" value="Generate List" /></p>
</form>
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 @@
<h2>News: Add Article</h2>
{% endif %}
- <form id="newsform" method="post" action=".">{% csrf_token %}
+ <form id="newsform" method="post">{% csrf_token %}
<fieldset>
{{ form.as_p }}
</fieldset>
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 @@
<p>Are you sure?</p>
- <form method="post" action=".">{% csrf_token %}
+ <form method="post">{% csrf_token %}
<input title="Delete this article" id="delete" name="delete"
type="submit" value="Delete" /></p>
</form>
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 @@
<p>Please confirm your flag request for {{pkg.pkgname}}:</p>
- <form id="flag-pkg-form" method="post" action=".">{% csrf_token %}
+ <form id="flag-pkg-form" method="post">{% csrf_token %}
<fieldset>
{{ form.as_p }}
</fieldset>
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 @@
<p class="login-error">Your username and password didn't match. Please try again.</p>
{% endif %}
- <form id="dev-login-form" method="post" action=".">{% csrf_token %}
+ <form id="dev-login-form" method="post">{% csrf_token %}
<fieldset>
<legend>Enter login credentials</legend>
{{ 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 @@
<p>Are you sure?</p>
- <form id="delete-todo-form" method="post" action=".">{% csrf_token %}
+ <form id="delete-todo-form" method="post">{% csrf_token %}
<p><input type="submit" value="Delete" /></p>
</form>