diff options
| author | Julian Hurst <ark@mansus.space> | 2023-01-25 15:44:29 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-01-25 15:44:29 +0100 |
| commit | f5207342b5cb2143e94c8bafe73c326e08bfd40f (patch) | |
| tree | 8f7b17b564d1b70f0a9128d5cef7f352bc15d574 | |
| parent | f416775268085c7fb7f90cf54ea2149267b960e6 (diff) | |
| download | docspace-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).
| -rw-r--r-- | templates/user.html | 5 |
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}} |
