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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu Jul 13 14:25:48 CEST 2006


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.



More information about the TYPO3-team-core mailing list