Skip to content

Commit

Permalink
Escaping special characters in file/folder paths [Fixed]
Browse files Browse the repository at this point in the history
  • Loading branch information
Royalgamer06 authored Aug 21, 2017
1 parent d464f09 commit 9b64842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (files) {
var toProcess = '';
if (files instanceof Array) {
files.forEach(function (f) {
toProcess += '"' + f.replace(/\^/g, '^^').replace(/\&/g, '^&').replace(/\\/g, '^\\').replace(/\</g, '^<').replace(/\>/g, '^>').replace(/\|/g, '^|')/.replace(/\%/g, '%%') + '" ';
toProcess += '"' + f.replace(/\^/g, '^^').replace(/\&/g, '^&').replace(/\</g, '^<').replace(/\>/g, '^>').replace(/\|/g, '^|').replace(/\%/g, '%%') + '" ';
});
toProcess = toProcess.trim();
} else {
Expand Down

0 comments on commit 9b64842

Please sign in to comment.