| Summary: | When creating mailto: link, it doesnt do url encode of subject | ||
|---|---|---|---|
| Product: | [Unmaintained] quanta | Reporter: | Miroslav Maiksnar <miroslav.maiksnar> |
| Component: | general | Assignee: | András Manţia <amantia> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 3.1.1 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | ULR encoding algorithm taken from the PHP spurce code | ||
|
Description
Miroslav Maiksnar
2003-06-23 16:51:07 UTC
Subject: Re: New: When creating mailto: link, it doesnt do url encode of subject Can you give me the correct encoding, how it should look like. I'm mainly a C++ developer, not a HTML one. :-( Andras Created attachment 1877 [details]
ULR encoding algorithm taken from the PHP spurce code
I hope I didn't break any license by attaching source code of this function ;o/
URL encoded line should look like this: Do+you+like+M%26M%5C%27s%3F Subject: quanta CVS commit by amantia: Encode the subject in a mailto url [#60275]. CCMAIL: 60275-done@bugs.kde.org M +1 -0 ChangeLog 1.181 M +1 -1 quanta/quantaview_slots.cpp 1.96 --- quanta/quanta/quantaview_slots.cpp #1.95:1.96 @@ -172,5 +172,5 @@ void QuantaView::slotTagMail() tag += QuantaCommon::attrCase(" href=")+qConfig.attrValueQuotation+"mailto:"+mailDlg->lineEmail->text(); if ( !QString(mailDlg->lineSubject->text()).isEmpty()) - tag += "?subject="+mailDlg->lineSubject->text(); + tag += "?subject="+KURL::encode_string(mailDlg->lineSubject->text()); tag += qConfig.attrValueQuotation; } --- quanta/ChangeLog #1.180:1.181 @@ -50,4 +50,5 @@ - don't close quanta, if the user cancelled the toolbar saving [#59952] - warn about existing files on rename [#60187] + - encode the subject in a mailto url [#60275] - new features: |