Commit 3087001a authored by Albert Astals Cid's avatar Albert Astals Cid

Fix symbolic link following in the archive:/ kio slave

KUrl -> Qurl porting bug, fixed by actually doing what kurl.h suggests to do

Reviewed by dfaure on irc
parent cea29da2
......@@ -436,12 +436,7 @@ void ArchiveProtocol::get( const QUrl & url )
{
const QString target = archiveEntry->symLinkTarget();
qCDebug(KIO_ARCHIVE_LOG) << "Redirection to" << target;
QUrl realURL(url);
if (QDir::isRelativePath(target)) {
realURL.setPath(realURL.path() + '/' + target);
} else {
realURL.setPath(target);
}
const QUrl realURL = url.resolved(QUrl(target));
qCDebug(KIO_ARCHIVE_LOG) << "realURL=" << realURL;
redirection( realURL );
finished();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment