[TYPO3-core] spamprotecting of mail addresses fais when address starts with mailto: (see #3768)

Michael Stucki michael at typo3.org
Fri Jul 14 20:18:29 CEST 2006


Masi, please commit this change.

Michael

Martin Kutschker wrote:

> Hi!
> 
> I created a mailto link in a header manually and added (don't know why)
> the protocol. The link worked but spam protecting didn't work. The problem
> is a wrong check in tslib_cObj->typoLink:
> 
> $pU = parse_url($link_param);
> // Detecting kind of link:
> if(strstr($link_param,'@') && !$pU['scheme']) {               // If it's a mail
> address:
>   ..
> }
> 
> This should be:
> 
> strstr($link_param,'@') && (!$pU['scheme'] || $pU['scheme']=='mailto')
> 
> Masi
> 
> PS: Sorry, but this is too dull for a diff.

-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list