From 47b12bb07a7f15650346a37acfbc3b9d5fa7c6df Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 24 Oct 2016 12:49:52 +0300 Subject: [PATCH] fix(menu) download: file name containes "#" (#80) --- lib/client/menu.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/client/menu.js b/lib/client/menu.js index 013990d7..2e171b34 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -301,6 +301,12 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO; CloudCmd.log('downloading file ' + path + '...'); + /* + * if we send ajax request - + * no need in hash so we escape # + */ + path = path.replace(/#/g, '%23'); + if (isDir) path = prefixUr + PACK + path + '.tar.gz'; else