KMail: Attachments containing '#' cannot be opened #119
Open
opened 3 weeks ago by pschwabauer
·
3 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Description
All characters after the '#' in the filename will be truncated. Because of this, it is not possible to open attachments that contain this character.
For example, if the filename is
test#test.png
, KMail will open/tmp/xxx/test
and not/tmp/xxx/test#test.png
. If the filename is#test.png
, it will try to open/tmp/xxx
.The reason is that in KMReaderWin::tempFileUrlFromPartNode the file path is not correctly escaped.
See the documentation for
KURL
on how to properly escape the file path: https://trinitydesktop.org/docs/trinity/tdelibs/tdecore/html/classKURL.html#detailsSteps to reproduce
test#test.png
@pschwabauer will you work on a fix for this?
Yes, I will submit a pull request in the coming days.
Great, thank you. Keep in mind we are under soft freeze for R14.1.2, so the PR will be merged after that and will end up in R14.1.3.