mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdirshare: percentage-encode the path reference
fixes loading of files that are percentage encoded and have to be double-percentage encoded for browsers to cope with Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d57eb2ce29
commit
cdb188800e
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ static QByteArray contentForDirectory(const QString &path, const QString &basedi
|
||||||
|
|
||||||
// qDebug() << Q_FUNC_INFO << fullpath << basedir << cleanpath;
|
// qDebug() << Q_FUNC_INFO << fullpath << basedir << cleanpath;
|
||||||
data.append(" <td><a href=\"");
|
data.append(" <td><a href=\"");
|
||||||
data.append(cleanpath.toUtf8());
|
data.append(QUrl::toPercentEncoding(cleanpath));
|
||||||
data.append("\">");
|
data.append("\">");
|
||||||
data.append(fileinfo.fileName().toUtf8());
|
data.append(fileinfo.fileName().toUtf8());
|
||||||
data.append("</a><br></td>\n");
|
data.append("</a><br></td>\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue