From 8c541bef9340e210e31eeb62e572b75ffcdd0b4a Mon Sep 17 00:00:00 2001 From: pschwabauer Date: Mon, 15 Apr 2024 14:22:21 +0200 Subject: Fix attachment filename handling Currently filenames containing '#' are not correctly escaped, which prevents to open attachments. This resolves issue #119. Signed-off-by: pschwabauer --- kmail/kmreaderwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp index d0d78b72..8ada99f4 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(); } -- cgit v1.2.3