From 73932a666d6f495c03dc0d843fed2dd905a08cd4 Mon Sep 17 00:00:00 2001 From: Andrew Kennedy Date: Tue, 3 Aug 2021 02:28:45 -0700 Subject: [PATCH] Fix 401 error in share view open file button This link would be generated with a `?token=?inline=true` when it should be `?token=&inline=true`. This was causing 401 Unauthorized errors because `URL.Query().Get("token")` would return the empty string and so (authenticateShareRequest)[https://github.com/filebrowser/filebrowser/blob/dee465ab865ba5bf96fbfbe5888f4e95731d3701/http/public.go#L126] would try to verify the password in the header, which doesn't exist for these requests. --- frontend/src/views/Share.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue index bad206ca..4340e8d3 100644 --- a/frontend/src/views/Share.vue +++ b/frontend/src/views/Share.vue @@ -93,7 +93,7 @@