mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(cloudfunc) encode space before render: " " -> " "
This commit is contained in:
parent
0cf714bf59
commit
52f41017d1
1 changed files with 5 additions and 1 deletions
|
|
@ -34,6 +34,10 @@ var Util;
|
|||
this.CHANNEL_TERMINAL_RESIZE= 'terminal-resize';
|
||||
this.MAX_FILE_SIZE = 500 * 1024;
|
||||
|
||||
function encodeSpace(str) {
|
||||
return str.replace(/\s/g, ' ');
|
||||
}
|
||||
|
||||
this.formatMsg = function(msg, name, status) {
|
||||
if (!status)
|
||||
status = 'ok';
|
||||
|
|
@ -223,7 +227,7 @@ var Util;
|
|||
|
||||
linkResult = render(templateLink, {
|
||||
link : link,
|
||||
name : file.name,
|
||||
name : encodeSpace(file.name),
|
||||
attribute : attribute
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue