mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added supporting of Russian language in directory names
This commit is contained in:
parent
7665f2a37c
commit
0219beaa67
1 changed files with 5 additions and 10 deletions
15
server.js
15
server.js
|
|
@ -367,17 +367,12 @@ CloudServer._controller=function(pReq, pRes)
|
|||
/* если в итоге путь пустой
|
||||
* делаем его корневым
|
||||
*/
|
||||
if(pathname==='')pathname='/';
|
||||
if (pathname==='')
|
||||
pathname = '/';
|
||||
|
||||
RightDir=pathname;
|
||||
LeftDir=pathname;
|
||||
|
||||
/* если встретиться пробел -
|
||||
* меня код символа пробела на пробел
|
||||
*/
|
||||
|
||||
LeftDir=CloudFunc.replaceSpaces(LeftDir);
|
||||
RightDir=CloudFunc.replaceSpaces(RightDir);
|
||||
/* added supporting of Russian language in directory names */
|
||||
LeftDir = querystring.unescape(pathname);
|
||||
RightDir = LeftDir;
|
||||
|
||||
/* Проверяем с папкой ли мы имеем дело */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue