Bug #16436 ยป 0003985.patch
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 {
|