Opened 22 years ago

Last modified 22 years ago

#179 closed Bug report

FileZilla cant parse some FTP addresses

Reported by: rangeva Owned by:
Priority: normal Component: Other
Keywords: Cc: rangeva, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

When using FileZilla with outside argument (ARGV[])
Example:
FileZilla.exe ftp://ftp.belnet.be/debian-
cd/3.0_r0/i386/debian-30r0-i386-binary-2.iso

Or

FileZilla ftp://ftp2.de.debian.org/debian-
cd/image/3.0_r0/jigdo/i386/debian-30r0-i386-binary-4.iso

This one sounds easy to solve, because when cutting
and pasting it to the "Quick Connect" address bar, it
works perfect...

Change History (2)

comment:1 by rangeva, 22 years ago

Ok found the problem:
On command line parse u search for "-i" or "/i" and ftp
address with "-i" in them (like the one I sent) are parsed all
wrong. All u have to do is add spaces padding " -i " and " /i "
when you compare...

if (((pos=cmdLine.Find( _T(" /i ") ))!=-1)
((pos=cmdLine.Find(

_T(" -i ") ))!=-1))

{

cmdLine=cmdLine.Mid(pos+2);
cmdLine.TrimLeft( _T(" ") );
cmdLine.TrimRight( _T(" ") );
PathRemoveArgs(cmdLine);
PathUnquoteSpaces(cmdLine);
CSiteManager::Import(cmdLine);
return FALSE;

}

comment:2 by Tim Kosse, 22 years ago

FileZilla 2.1.0 contains a new command line parser which
fixes this problem

Note: See TracTickets for help on using tickets.