Commit d84203a9 authored by Stefan Brüns's avatar Stefan Brüns

Correctly encode URL of thumbnails

Same as in kio core, see
frameworks/kio@371e523f
parent 9b6e1cda
......@@ -701,7 +701,7 @@ bool ThumbnailProtocol::createSubThumbnail(QImage& thumbnail, const QString& fil
// 128 x 128 or 256 x 256 pixels
int cacheSize = 0;
QCryptographicHash md5(QCryptographicHash::Md5);
md5.addData(QFile::encodeName(fileUrl.toString()));
md5.addData(fileUrl.toEncoded());
const QString thumbName = QFile::encodeName(md5.result().toHex()).append(".png");
if (m_thumbBasePath.isEmpty()) {
......
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