kopia lustrzana https://github.com/c9/core
Another filename encoding fix
rodzic
fd96fc8f01
commit
31ad443da5
|
@ -113,10 +113,8 @@ define(function(require, exports, module) {
|
||||||
paths.forEach(function(path) {
|
paths.forEach(function(path) {
|
||||||
if (!path) return;
|
if (!path) return;
|
||||||
path = Path.relative(cwd, path);
|
path = Path.relative(cwd, path);
|
||||||
// tar misinterprets the Windows path separator as an escape sequence, so use forward slash.
|
// Single quote the path to escape unusual characters, and manually escape single quotes.
|
||||||
if (Path.sep === '\\') {
|
path = "'" + path.replace(/'/, "'\\''") + "'";
|
||||||
path = path.replace(/\\/g, '/');
|
|
||||||
}
|
|
||||||
args.push(path);
|
args.push(path);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue