diff options
author | Dan McGee <dan@archlinux.org> | 2010-06-12 00:29:46 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-12 00:29:46 +0200 |
commit | b3059dd3e871de3bc34fa3ee7ab9730c034f22df (patch) | |
tree | 9842753abf3503c37af809e7b15cec26da759b44 /templates/news | |
parent | 408288719e7515ac01c6eb81a5a2d9a1c63a62bc (diff) | |
download | archweb-b3059dd3e871de3bc34fa3ee7ab9730c034f22df.tar.gz archweb-b3059dd3e871de3bc34fa3ee7ab9730c034f22df.tar.xz |
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>
Diffstat (limited to 'templates/news')
-rw-r--r-- | templates/news/add.html | 2 | ||||
-rw-r--r-- | templates/news/delete.html | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ <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 3e3ba95..191c692 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> |