Page 1 of 1

WFTPConsole.exe lua error

Posted: Thu Oct 22, 2015 8:40 am
by pdoll
Hi,

actually we have a strange problem with running lua scripts with wftpconsole.exe.
Simple example:

If we execute

Code: Select all

print("Now time: %CurrentTime \n")
on lua Web Console, everything works fine:
Now time: Thu, 22 Oct 2015 10:16:26 GMT

But when we do this with wftpconsole (wftpconsole.exe -u USER -p PASSWORD -P PORT -f ScriptPath.lua) the following error occurs:
some error in [string "print("Now time: Thu, 22 Oct 2015 10:15:40 GMT &slash;n&qu..."]:1: unexpected symbol near '&'!
Script Content is absolutly the same...

Re: WFTPConsole.exe lua error

Posted: Fri Oct 23, 2015 6:04 am
by FTP
Yes, that's a bug with the application "WFTPConsole.exe", and for the temporary solution, you can modify the file "lua/cgiadmin.lua", replace the line 208:

if MatchedReferer == true then

into

if MatchedReferer == true or key == "command" then

Re: WFTPConsole.exe lua error

Posted: Fri Oct 23, 2015 10:04 am
by pdoll
Works for me. Thanks

Re: WFTPConsole.exe lua error

Posted: Fri Oct 30, 2015 9:49 am
by FTP
The new version 4.5.8 is out now, it fixed the console application bug.