Bug 386368

Summary: Links in HTML emails broken by escaped ampersands
Product: [Applications] kmail2 Reporter: spamme
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.6.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.6.3

Description spamme 2017-10-30 16:09:49 UTC
In HTML emails KMail escapes ampersands, i.e., replaces them with "&amp;" in link URLs and breaks these links.

For instance:

 <a href="mailto:abc@domain.com?subject=Email&body=ABC123">Send email</a>

becomes

 <a href="mailto:abc@domain.com?subject=Email&amp;body=ABC123">Send email</a>

In this particular case clicking on the link will create a new email with subject "Email", but the body will not contain "ABC123" as it should.
Comment 1 spamme 2017-10-30 16:18:26 UTC
Problem occurs both in Debian 9 stable (stretch) and in Arch Linux using 5.6.2.
Comment 2 Laurent Montel 2017-10-31 07:08:50 UTC
Git commit 2ed33b9fcd46334b4c7867a2f3a9e34e57282e8d by Montel Laurent.
Committed on 31/10/2017 at 07:08.
Pushed by mlaurent into branch 'Applications/17.08'.

Fix Bug 386368 - Links in HTML emails broken by escaped ampersands

FIXED-IN: 5.6.3

M  +7    -0    templateparser/src/templateparserjob.cpp

https://commits.kde.org/messagelib/2ed33b9fcd46334b4c7867a2f3a9e34e57282e8d