[TYPO3-core] RFC: fix bug #3427 - config.spamProtectEmailAddresses may garble mail link
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Wed Jun 28 16:30:14 CEST 2006
Martin Kutschker schrieb:
> Hi!
>
> Type: bugfix
> Branch: HEAD, TYPO3_4-0
>
> Problem: When you use -3 and -5 for protection then the code will shift
> the mail link characters in such a way that the mail link is unusable.
>
> Solution:
>
> Instead of doing a plain shift to the left or right make the shift
> circle within a given character range. The code uses the three main
> areas of ASCII that are used in mail addresses:
>
> 0-9 . , - + / :
> A-Z @
> a-z
>
> The new code accepts also -10 to 10 (instead of -5 to 5).
Sorry for the wrong patch. I thought about renaming linkTo_UnCryptMailto
(there is no word "uncrypt") but I don't do know. So only pagegen is affected.
Here's the patch without the Javascript alert().
Masi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tslib_pagegen-cryptmail.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060628/4a1d1e1c/attachment.diff
More information about the TYPO3-team-core
mailing list