From 1b2b1683de82ea060d83e961826ef7d391188b45 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 4 Apr 2020 21:21:14 +0000 Subject: [PATCH] CDUP requires a response. --- exec/load/ftp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/load/ftp.js b/exec/load/ftp.js index b7c14926f7..05504cbaa9 100644 --- a/exec/load/ftp.js +++ b/exec/load/ftp.js @@ -68,7 +68,7 @@ FTP.prototype.cdup = function() var rstr; var ret; - rstr = this.cmd("CDUP"); + rstr = this.cmd("CDUP", true); ret = parseInt(rstr, 10); if (ret !== 200) return false; @@ -108,7 +108,7 @@ FTP.prototype.pwd = function() rstr = this.cmd("PWD", true); ret = parseInt(rstr, 10); if (ret === 257) - return rstr.replace(/^257 "(.*)".*?$/, '$1'); + return rstr.replace(/^257 "(.*)".*?$/, "$1"); return null; } -- GitLab