Review Request 118604: Fix wrong escaping in kfilewidget when selecting multiple files

David Faure faure at kde.org
Sat Jun 14 09:54:44 BST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118604/#review60070
-----------------------------------------------------------


What if the file isn't local?

Sounds to me like the bug is elsewhere.

Of course for local files, showing a local path looks better than a file:/// URL, so this could be improved, but in a way that doesn't break remote files.

The use of KUrl::relativeUrl and putting that into a url looks quite suspicious to me, actually.
KUrl didn't work well with relative urls.

Maybe locationEditCurrentTextList should be changed into a qstringlist rather than a url list...

It would also be interesting to check if this works in the KIO framework (Qt5), where I ported it to QUrl...

- David Faure


On June 7, 2014, 4:43 p.m., Victor Dodon wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118604/
> -----------------------------------------------------------
> 
> (Updated June 7, 2014, 4:43 p.m.)
> 
> 
> Review request for kdelibs, Albert Vaca Cintora and Aaron J. Seigo.
> 
> 
> Bugs: 335922
>     http://bugs.kde.org/show_bug.cgi?id=335922
> 
> 
> Repository: kdelibs
> 
> 
> Description
> -------
> 
> Only when selecting multiple files in KFileDialog, if a file contains in the name the characters '#' or '%', it is (wrongly) escaped.
> 
> The only modification needed is in kfilewidget.cpp, in slotOk, instead of appending to the stringList the pretty url, append the url.toLocalFile, to prevent the double escaping.
> 
> 
> Diffs
> -----
> 
>   kfile/kfilewidget.cpp fc9b169 
> 
> Diff: https://git.reviewboard.kde.org/r/118604/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Victor Dodon
> 
>

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


More information about the kde-core-devel mailing list