replaces (space) with (+) when doing html-mail. added emaillink with subject this appears in subjectline when clicking the link

UNCONFIRMED
Unassigned

Status

UNCONFIRMED
9 years ago
2 years ago

People

(Reporter: fusse.johansson, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

When I make a mail in html-code I added a email-link with subject.
mailto:erbjudande@in-house.se?subject=Ja Tack sänd materialet snarast.
This line on send changes to
mailto:erbjudande@in-house.se?subject=Ja+Tack+s%C3%A4nd+materialet+snarast.
Result when clicking on the link is in subject:  Ja+Tack+s%C3%A4nd+materialet+snarast.

Reproducible: Always

Steps to Reproduce:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="language" content="SE">
<title>Erbjudande från In House</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
body p {
	font-family: Arial, Helvetica, sans-serif;
}
#s {
	font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<table background="http://www.In-House.se/images/ELDFLAMMAjpg.jpg"
 border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr>
      <td width="100"> </td>
      <td bgcolor="#ffffff"><img
 src="http://www.in-house.se/images/logoinhouse.png"
 alt="In House" height="133"></td>
      <td align="left" bgcolor="#0066cc" width="10"> </td>
      <td bgcolor="#ff3333" width="10"> </td>
      <td width="100">Â </td>
    </tr>
    <tr>
      <td width="100"> </td>
      <td bgcolor="#ffffff">
      <blockquote>
        <blockquote>
          <p>Hej Göran </p>
          <p>Vi har sökt Dig och vill nu kontakta Dig angående ett
förslag som kan vara till gagn för Dig och Dina hyresgäster/kunder. <br>
Vi skulle för påseende vilja sända Dig ett material innehållande:<br>
          <br>
          <strong>* En säkerhetsprodukt för att släcka levande ljus.<br>
* Roliga intressanta helt nya spel för alla. <br>
* Ideéer hur Ni kan kommunicera med Era hyresgäster.</strong><br>
          <br>
          <a href="http://www.in-house.se/images/erbjudande_lada.pdf"
 target="_blank">Titta på denna PDF. <br>
          </a><br>
Värdet på materialet är ca 400 SEK. <br>
          <a
 href="mailto:erbjudande@in-house.se?subject=Ja Tack sänd materialet snarast.">Ja Tack, Jag vill gärna att ni skickar materialet till mig kostnadsfritt.</a></p>
        </blockquote>
        <hr>
        <div id="s" align="center">In House Produkter i Sverige AB,
Nisshyttevägen 2, 783 91 Säter <br>
Tel: 0225-59 71 12, Fax: 0225-59 71 13</div>
      </blockquote>
      </td>
      <td align="left" bgcolor="#0066cc" width="10"> </td>
      <td bgcolor="#ff3333" width="10"> </td>
      <td width="100"> </td>
    </tr>
    <tr>
      <td width="100"> </td>
      <td bgcolor="#ffffff">Â </td>
      <td align="left" bgcolor="#0066cc" width="10"> </td>
      <td bgcolor="#ff3333" width="10"> </td>
      <td width="100"><br>
      </td>
    </tr>
  </tbody>
</table>
<br>
<br>
Actual Results:  
In steps to reproduce I added the html-code.
The result is as described in details

Expected Results:  
I expected the subjectline look like this:  Ja Tack sänd materialet snarast.
Does this happens with every web browser ?

Comment 2

9 years ago
The url "mailto:erbjudande@in-house.se?subject=Ja Tack sänd materialet snarast." is actually incorrect. You are not allowed to have spaces in the URL. So before using the URL firefox is correcting it by encoding the spaces. Now, space can be encoded either by + or %20. In my firefox (3.6.3 on Linux) it uses %20, but it seems like it uses + in your firefox. The thing is that thunderbird correctly decodes %20 to space, but not +. This is a bug as far as I can see and I can't find any other bug covering it.

But what you actually should do is replacing space with %20 in your mailto URL.

Comment 3

8 years ago
I agree that the bug seems to be that Thunderbird is correctly decoding %20 as space, but not +.

The example I came across in the wild had the spaces pre-encoded to +, causing the same result in Firefox and Internet Explorer.

Visit http://cooking.stackexchange.com/, scroll down a bit, and click the "share this link via email" icon on the right-hand side.

Comment 4

7 years ago
Do you still see this issue when using version 5 or 6 (due out in a week)?
- If you no longer see the problem, please set status to RESOLVED, and set resolution to WORKSFORME. (or perhaps INVALID, if you determined the problem is not Thunderbird)
- If you still see the problem, please provide updated details, and any additional steps needed to reproduce the problem.
Whiteboard: [closeme 2011-09-01]

Comment 5

7 years ago
I still see the problem. Nothing has changed so I can't see that any details needs updating.

Comment 6

7 years ago
Joe, can you reproduce?
Component: General → Message Reader UI
QA Contact: general → message-reader
Whiteboard: [closeme 2011-09-01]

Comment 7

7 years ago
(In reply to Wayne Mery (:wsmwk) from comment #6)
> Joe, can you reproduce?

Plus in mailto urls are interpreted as that character, and not a space.
Whether that is rfc compliant or not...I'm not sure.
You need to log in before you can comment on or make changes to this bug.