Commit d60bb22e by Kálmán Viktor

dashboard: fix up url for folders ending with whitespace

parent e6f886a7
...@@ -3120,7 +3120,10 @@ class StoreList(LoginRequiredMixin, TemplateView): ...@@ -3120,7 +3120,10 @@ class StoreList(LoginRequiredMixin, TemplateView):
return redirect("/") return redirect("/")
def create_up_directory(self, directory): def create_up_directory(self, directory):
return normpath(join('/', directory, '..')) path = normpath(join('/', directory, '..'))
if not path.endswith("/"):
path += "/"
return path
@require_GET @require_GET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment