diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2016-01-21 15:54:13 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-21 14:00:23 -0500 |
| commit | a034ced2efccafdf394b807487ee97665fe003c3 (patch) | |
| tree | 043b34776630aaf2f3216fc7dd9b439bea9e5ccc /tests/templates/form_view.html | |
| parent | 8502e9f04974660c80efc74f6e60ed566b3f52b3 (diff) | |
[1.8.x] Changed `action="."` to `action=""` in tests and docs.
`action="."` strips query parameters from the URL which is not usually what
you want. Copy-paste coding of these examples could lead to difficult to
track down bugs or even data loss if the query parameter was meant to alter
the scope of a form's POST request.
Backport of 77974a684a2e874bccd8bd9e0939ddcb367a8ed2 from master
Diffstat (limited to 'tests/templates/form_view.html')
| -rw-r--r-- | tests/templates/form_view.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/templates/form_view.html b/tests/templates/form_view.html index a23fd0b657..1ef410fb71 100644 --- a/tests/templates/form_view.html +++ b/tests/templates/form_view.html @@ -2,7 +2,7 @@ {% block title %}Submit data{% endblock %} {% block content %} <h1>{{ message }}</h1> -<form method='post' action='.'> +<form method="post" action=""> {% if form.errors %} <p class='warning'>Please correct the errors below:</p> {% endif %} |
