[Typo3-dev] Improvement of function validEmail($email)
Michael Stucki
mundaun at gmx.ch
Wed Mar 10 03:21:06 CET 2004
Hi Christopher,
>> I think I don't get it. What is the problem, can you please give me a
>> quick example?
> Unless I misunderstood, I think he was referring to the fact that the
> address the form is sent to is in the source code to the page
> containing the form. Ack: spam robots!
Ah, I see. That's true but it has nothing todo with the thing from above.
If you want to change this behaviour, you'll have to modify
tslib/class.tslib_content.php. Search for part 1 and replace it with part 2.
--- cut "part 1" ---
// copyemail:
$theEmail = $this->stdWrap($conf['recipient'], $conf['recipient.']);
if ($theEmail) {
$hiddenfields.='<input type="hidden" name="recipient" value="'.htmlspecialchars($theEmail).'" />';
}
--- cut "part 1" ---
--- cut "part 2" ---
// copyemail:
$theEmail = $this->stdWrap($conf['recipient'], $conf['recipient.']);
if ($theEmail) {
if ($GLOBALS['TSFE']->spamProtectEmailAddresses) {
$atLabel = trim($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses_atSubst']);
$theEmail=str_replace('@',$atLabel?$atLabel:'(at)',$theEmail);
}
$hiddenfields.='<input type="hidden" name="recipient" value="'.htmlspecialchars($theEmail).'" />';
}
--- cut "part 2" ---
I will send a copy of this mail to bugs at typo3.com, maybe Kasper will add
this by default.
Cheers - michael
--
Want support? Please read the list rules first: http://typo3.org/1438.0.html
More information about the TYPO3-dev
mailing list