Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
d84203a9
Commit
d84203a9
authored
Aug 21, 2020
by
Stefan Brüns
Browse files
Correctly encode URL of thumbnails
Same as in kio core, see
frameworks/kio@371e523f
parent
9b6e1cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
thumbnail/thumbnail.cpp
View file @
d84203a9
...
...
@@ -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
.
to
String
()
));
md5
.
addData
(
fileUrl
.
to
Encoded
(
));
const
QString
thumbName
=
QFile
::
encodeName
(
md5
.
result
().
toHex
()).
append
(
".png"
);
if
(
m_thumbBasePath
.
isEmpty
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment