[TYPO3-core] RFC: fix bug #3427 - config.spamProtectEmailAddresses may garble mail link

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Jun 28 15:53:14 CEST 2006


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).

Masi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mailcrypt.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060628/958f3e00/attachment.diff 


More information about the TYPO3-team-core mailing list