Project

General

Profile

Bug #16436 ยป 0003985.patch

Administrator Admin, 2007-02-06 15:03

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie)
*/
function getMailTo($mailAddress,$linktxt,$initP='?') {
if(!strcmp($linktxt,'')) { $linktxt = $mailAddress; }
$linktxtIsMailAddress = $linktxt == $mailAddress ? true : false;
$mailToUrl = 'mailto:'.$mailAddress;
......
if ($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses_atSubst']) {
$atLabel = trim($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses_atSubst']);
}
$linktxt = str_replace('@',$atLabel?$atLabel:'(at)',$linktxt);
if ($linktxtIsMailAddress) {
$linktxt = str_replace('@',$atLabel?$atLabel:'(at)',$linktxt);
}
if ($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses_lastDotSubst']) {
$lastDotLabel = trim($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses_lastDotSubst']);
$lastDotLabel = $lastDotLabel ? $lastDotLabel : '(dot)';
$linktxt = preg_replace('/\.([^\.]+)$/', $lastDotLabel.'$1', $linktxt);
if ($linktxtIsMailAddress) {
$linktxt = preg_replace('/\.([^\.]+)$/', $lastDotLabel.'$1', $linktxt);
}
}
}
} else {
    (1-1/1)