Review Request: Fix handling of FTP urls whose path name ends with a type code

Dawit Alemayehu adawit at kde.org
Wed Mar 16 20:59:39 GMT 2011



> On March 16, 2011, 4:37 p.m., Thiago Macieira wrote:
> > kioslave/ftp/ftp.cpp, line 95
> > <http://git.reviewboard.kde.org/r/100872/diff/1/?file=11462#file11462line95>
> >
> >     Suggestion: 
> >         path.left(path.length() - sizeof ";type=");
> >     
> >     sizeof(";type=") == strlen(";type=X")

That is a cool trick. I never knew you could do that. Thanks.


- Dawit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100872/#review2005
-----------------------------------------------------------


On March 16, 2011, 3:23 p.m., Dawit Alemayehu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100872/
> -----------------------------------------------------------
> 
> (Updated March 16, 2011, 3:23 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> As stated in the summary this patch fixes kio_ftp so that it can properly handle FTP urls that have transfer "type" information embedded in their path. Such FTP urls are legal in the old URI RFC, RFC 1738. Since the RFC that preceded it is neutral on this subject and both Firefox and Chrome support such urls, kio_ftp should too.
> 
> 
> This addresses bug 92589.
>     http://bugs.kde.org/show_bug.cgi?id=92589
> 
> 
> Diffs
> -----
> 
>   kioslave/ftp/ftp.cpp 038ac2e 
> 
> Diff: http://git.reviewboard.kde.org/r/100872/diff
> 
> 
> Testing
> -------
> 
> Clicked on the example link provided in the bug report. Note there is a secondary bug unrelated to this fix that prevents the click on the link from properly being handled once you choose an action.
> 
> 
> Thanks,
> 
> Dawit
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110316/53dba186/attachment.htm>


More information about the kde-core-devel mailing list