mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdirshare: fix ".." regression
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6cfe505af4
commit
e1db4a1c72
1 changed files with 5 additions and 2 deletions
|
@ -106,7 +106,11 @@ static QByteArray contentForFile(const QString &basedir, const QFileInfo &filein
|
|||
// chromium does weird stuff if the link starts with two slashes - removes, the host and
|
||||
// port part of the link (or rather does not prepend them) and converts the first directory
|
||||
// to lower-case
|
||||
const QString cleanpath = QDir::cleanPath(fullpath.mid(basedir.size()));
|
||||
QString cleanpath = QDir::cleanPath(fullpath.mid(basedir.size()));
|
||||
if (fileinfo.isDir()) {
|
||||
cleanpath.append(QDir::separator());
|
||||
}
|
||||
// qDebug() << Q_FUNC_INFO << fullpath << basedir << cleanpath;
|
||||
|
||||
data.append(" <tr>\n");
|
||||
|
||||
|
@ -123,7 +127,6 @@ static QByteArray contentForFile(const QString &basedir, const QFileInfo &filein
|
|||
data.append("</td>\n");
|
||||
}
|
||||
|
||||
// qDebug() << Q_FUNC_INFO << fullpath << basedir << cleanpath;
|
||||
data.append(" <td><a href=\"");
|
||||
data.append(QUrl::toPercentEncoding(cleanpath));
|
||||
data.append("\">");
|
||||
|
|
Loading…
Add table
Reference in a new issue