Fix 401 error in share view open file button

This link would be generated with a `?token=<hash>?inline=true` when it should be `?token=<hash>&inline=true`. This was causing 401 Unauthorized errors because `URL.Query().Get("token")` would return the empty string and so (authenticateShareRequest)[dee465ab86/http/public.go (L126)] would try to verify the password in the header, which doesn't exist for these requests.
This commit is contained in:
Andrew Kennedy 2021-08-03 02:28:45 -07:00 committed by GitHub
parent 8ecc2da947
commit 73932a666d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@
</a>
<a
target="_blank"
:href="link + '?inline=true'"
:href="link + '&inline=true'"
class="button button--flat"
v-if="!req.isDir"
>