Form submission cleanup: use ./ instead of blank actions, since some UAs leave the query string on POSTs with blank actions. Also switch some GETs to POSTs since we now support them.
This commit is contained in:
Родитель
44dfc8da68
Коммит
e075140c8d
|
@ -6,7 +6,7 @@ TemplateToolkit
|
|||
<p>Your password has been sent.</p>
|
||||
|
||||
[% IF pendingCommands.ref %]
|
||||
<form action="" method="GET"> <!-- XXX POST -->
|
||||
<form action="./" method="POST" enctype="multipart/form-data">
|
||||
<p>
|
||||
<input type="submit" value="Continue...">
|
||||
[%- FOREACH key = pendingCommands.keys -%] [%- FOREACH value = pendingCommands.$key %]
|
||||
|
|
|
@ -7,7 +7,7 @@ TemplateToolkit
|
|||
headers = "WWW-Authenticate: Basic realm=\"$app.name\"\n"
|
||||
-%]
|
||||
|
||||
<form action="" method="GET"> <!-- XXX POST -->
|
||||
<form action="./" method="POST" enctype="multipart/form-data">
|
||||
|
||||
[% IF tried == 1 -%] <p> The password or username you used is incorrect. </p> [%- END %]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ TemplateToolkit
|
|||
|
||||
[% INCLUDE template.header title = 'Create Account' -%]
|
||||
|
||||
<form action="" method="GET"> <!-- XXX POST -->
|
||||
<form action="./" method="POST" enctype="multipart/form-data">
|
||||
<p>To create a new account fill in your e-mail address or other
|
||||
means of contact in the form below and hit the submit button:</p>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ TemplateToolkit
|
|||
|
||||
<div class="footer">
|
||||
<p>
|
||||
<a href="?">Index</a> -
|
||||
<a href="./">Index</a> -
|
||||
[%- IF session.ref %]
|
||||
<a href="?command=userPrefs">Preferences</a> -
|
||||
[%- IF session.right.cosesEditor %]
|
||||
|
|
|
@ -10,7 +10,7 @@ TemplateToolkit
|
|||
[%- indent = '' -%]
|
||||
[%- END %]
|
||||
|
||||
<form action="?" method="GET">
|
||||
<form action="./" method="GET">
|
||||
[%- "\n <ol>" IF manyUsers -%]
|
||||
[%- FOREACH userID = userIDs -%]
|
||||
[%- user = userData.$userID -%]
|
||||
|
|
|
@ -4,6 +4,6 @@ TemplateToolkit
|
|||
[% INCLUDE template.header title = 'User Preferences Saved' -%]
|
||||
|
||||
<p>The changes have been saved.</p>
|
||||
<p><a href="?">Return to index.</a></p>
|
||||
<p><a href="./">Return to index.</a></p>
|
||||
|
||||
[% INCLUDE template.footer %]
|
||||
|
|
Загрузка…
Ссылка в новой задаче