[Typo3-dev] Bad URL encoding in Direct Mail Subscription Mails
Jesper Weissglas
jesper at seventhwave.se
Thu Apr 21 22:37:28 CEST 2005
This of course looks a lot better, but it's still weird to me: The mail
is sent out with encoding quoted printable. Any SMTP MTA configured with
autoconvert (like most SendMail default installations) will interpret
the =xx (where xx is any hexadecimal number, such as 45 in your example
below) as a single character (i.e. with hex code 45), and mess up the URL.
If QP encoding is used the '=' must be encoded as =3D, and it isn't.
(I don't understand why the mail is sent as QP in the first place, since
all text comes from the template file, and the non-7bit ASCII characters
in that file are not QP encoded either!)
Unless of course there is some config option I've never seen that gets
rid of the QP encoding header?
/j
Andreas Schwarzkopf wrote:
> Hi Jesper,
>
> you can avoid all these problems if you configure in the TS-Template-Setup:
>
> config.notification_email_urlmode = all
>
> Then all links in the notification message will be converted to short
> redirect links like this:
>
> http://www.domain.tld/?RDCT=45335f243dc7e842c9b0
>
> hope that helps
>
> Andreas
>
> Jesper Weissglas schrieb:
>
>> When the Direct Mail Subscription extension gets a new subscriber, a
>> mail is sent to him with 3 links to click: Accept, Reject or modify
>> the subscription.
>>
>> This mail is sent out with Content-Transfer-Encoding: quoted-printable.
>>
>> Each link has three parts, put together in the extensions template file:
>> ###THIS_URL######FORM_URL######SYS_<some command>###
>>
>> Now since the mail encoding is QP, all '=' characters in the link (The
>> form GET parameters) have to be encoded as =3D. This happends for the
>> FORM_URL part, but not for the SYS_... part.
More information about the TYPO3-dev
mailing list