summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschwabauer <pschwabauer@intevation.de>2024-04-15 14:22:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-04-30 16:59:25 +0200
commit622ea70bfc5b4821d810e5c310a71d1a465b5a88 (patch)
treeb00c171243448dcc2090756a8f1827fb45f48d29
parentf64315510352b4c3e9fa0809619792cfafd8c7e5 (diff)
downloadtdepim-622ea70bfc5b4821d810e5c310a71d1a465b5a88.tar.gz
tdepim-622ea70bfc5b4821d810e5c310a71d1a465b5a88.zip
Fix attachment filename handling
Currently filenames containing '#' are not correctly escaped, which prevents to open attachments. This resolves issue #119. Signed-off-by: pschwabauer <pschwabauer@intevation.de> (cherry picked from commit 8c541bef9340e210e31eeb62e572b75ffcdd0b4a)
-rw-r--r--kmail/kmreaderwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp
index d0d78b728..8ada99f40 100644
--- a/kmail/kmreaderwin.cpp
+++ b/kmail/kmreaderwin.cpp
@@ -2690,7 +2690,7 @@ KURL KMReaderWin::tempFileUrlFromPartNode( const partNode * node )
bool ok;
int res = path.mid(left + 1, right - left - 1).toInt(&ok);
if ( res == node->nodeId() )
- return KURL( path );
+ return KURL::fromPathOrURL( path );
}
return KURL();
}