Fix SMTP/FTP subsystem for case-sensitive file names

This commit is contained in:
VADemon 2016-12-15 04:07:18 +01:00 committed by GitHub
parent ac3201d620
commit a17f5af900

View File

@ -73,7 +73,7 @@ function metat.__index:check(ok)
end end
function metat.__index:command(cmd, arg) function metat.__index:command(cmd, arg)
cmd = string.upper(cmd) cmd = string.find(cmd, " ") and string.upper(cmd:match("(.-)%s")) .. cmd:match(".-(%s.+)") or string.upper(cmd)
if arg then if arg then
return self.c:send(cmd .. " " .. arg.. "\r\n") return self.c:send(cmd .. " " .. arg.. "\r\n")
else else