Another filename encoding fix

pull/315/head
Chris Brown 2016-05-17 15:25:13 +01:00
rodzic fd96fc8f01
commit 31ad443da5
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -113,10 +113,8 @@ define(function(require, exports, module) {
paths.forEach(function(path) {
if (!path) return;
path = Path.relative(cwd, path);
// tar misinterprets the Windows path separator as an escape sequence, so use forward slash.
if (Path.sep === '\\') {
path = path.replace(/\\/g, '/');
}
// Single quote the path to escape unusual characters, and manually escape single quotes.
path = "'" + path.replace(/'/, "'\\''") + "'";
args.push(path);
});