diff --git a/THIRD-PARTY b/THIRD-PARTY index 68eff6c..f6472cc 100644 --- a/THIRD-PARTY +++ b/THIRD-PARTY @@ -2665,7 +2665,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm package may be included in this product: - - basic-ftp@5.2.0 + - basic-ftp@5.2.1 This package contains the following license: diff --git a/dist/index.js b/dist/index.js index 9123e72..a386cbb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -51890,6 +51890,9 @@ var require_Client = __commonJS({ * a given path to fix that issue for most cases. */ async protectWhitespace(path3) { + if (/[\r\n\0]/.test(path3)) { + throw new Error("Invalid path: Contains control characters"); + } if (!path3.startsWith(" ")) { return path3; }