aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-25 15:44:29 +0100
committerJulian Hurst <ark@mansus.space>2023-01-25 15:44:29 +0100
commitf5207342b5cb2143e94c8bafe73c326e08bfd40f (patch)
tree8f7b17b564d1b70f0a9128d5cef7f352bc15d574 /templates
parentf416775268085c7fb7f90cf54ea2149267b960e6 (diff)
downloaddocspace-f5207342b5cb2143e94c8bafe73c326e08bfd40f.tar.gz
Query string is removed from action in forms with method="GET"
Using a hidden input instead as intended by html5 spec: Let destination be a new URL that is equal to the action except that its <query> component is replaced by query (adding a U+003F QUESTION MARK character (?) if appropriate).
Diffstat (limited to 'templates')
-rw-r--r--templates/user.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/user.html b/templates/user.html
index 9a3a333..4180407 100644
--- a/templates/user.html
+++ b/templates/user.html
@@ -47,11 +47,8 @@
<br/>
<input type="submit" value="Télécharger les fichiers sélectionnés">
</form>
- {{if ne .UserImpersonation ""}}
- <form action="/download?user={{.UserImpersonation}}" method="GET" class="inlineblk">
- {{else}}
<form action="/download" method="GET" class="inlineblk">
- {{end}}
+ <input type="hidden" name="user" id="userAll" value="{{.UserImpersonation}}">
<input type="submit" value="Télécharger tous les fichiers">
</form>
{{end}}