mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(menu) download: file name containes "#" (#80)
This commit is contained in:
parent
7479ef770c
commit
47b12bb07a
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue