diff --git a/public/assets/pages/ctrl_sharepage.js b/public/assets/pages/ctrl_sharepage.js index 77eca64c7..1b94a6303 100644 --- a/public/assets/pages/ctrl_sharepage.js +++ b/public/assets/pages/ctrl_sharepage.js @@ -26,7 +26,7 @@ export default function(render) { else if (step === "code") return ctrlEmailCodeVerification(render, { shareID, setState }); else if (step === "done") { if (isDir(state["path"])) navigate(toHref(`/files/?share=${shareID}`)); - else navigate(toHref(`/view/${basename(state["path"])}?share=${shareID}&nav=false`)); + else navigate(toHref(`/view/${encodeURIComponent(basename(state["path"]))}?share=${shareID}&nav=false`)); return rxjs.EMPTY; } else assert.fail(`unknown step: "${step}"`);