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:
parent
8ecc2da947
commit
73932a666d
@ -93,7 +93,7 @@
|
||||
</a>
|
||||
<a
|
||||
target="_blank"
|
||||
:href="link + '?inline=true'"
|
||||
:href="link + '&inline=true'"
|
||||
class="button button--flat"
|
||||
v-if="!req.isDir"
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user