Bug in PWD response parsing

As you can read here, a FTP server has to convert double quotes in a
pathname to double double quotes (/public/tes"t goes to /public/tes""t)
when providing the client with the current name prefix (PWD).

SmartFTP does not handle this correctly, the first occuring double quote
seems to be parsed as end of the path which is simply not correct.

(ftp://home.arcor.de)







    MKD tes"t



257 "/Pics/Forum/tes""t" - Directory successfully created



    CWD /Pics/Forum/tes"t/



250 CWD command successful.



    PWD



257 "/Pics/Forum/tes""t" is current directory.



    PASV



227 Entering Passive Mode (151,189,20,30,243,90).



    Opening data connection IP: 151,189,20,30,243,90 PORT: 62298.



    LIST -aL



150 Opening ASCII mode data connection for file list



    123 bytes received successfully. (123 B/s) (00:00:01).



226-Transfer complete.





SmartFTP now shows the following dispite there isn't an actual directory
like "tes"
Image

I think this should be fixed easily :wink:


Thanks,

Lars

Thanks for reporting.

Fixed in latest developer build 1.0.983.1

Greets
-Mat