summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschwabauer <pschwabauer@intevation.de>2024-04-15 14:22:21 +0200
committerpschwabauer <pschwabauer@intevation.de>2024-04-30 09:05:39 +0200
commit8c541bef9340e210e31eeb62e572b75ffcdd0b4a (patch)
tree8da7514106cd7f041394444d9496c881c46640d0
parent1d22724f2e1b9568070113c6c825e6f145ae34df (diff)
downloadtdepim-8c541bef9340e210e31eeb62e572b75ffcdd0b4a.tar.gz
tdepim-8c541bef9340e210e31eeb62e572b75ffcdd0b4a.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>
-rw-r--r--kmail/kmreaderwin.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}