com web/wiki: maybe the spammer won't notice this: dokuwiki/inc/mail.php
| From: | Ferenc Kovacs | Date: | Mon, 13 Aug 2012 22:30:16 +0000 |
| Subject: | com web/wiki: maybe the spammer won't notice this: dokuwiki/inc/mail.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14402@lists.php.net to get a copy of this message | ||
Commit: 94d8bbc105d051cd8d32d7eddff43e3b5ecad69b
Author: Ferenc Kovacs <tyra3l@gmail.com> Tue, 14 Aug 2012 00:30:16 +0200
Parents: ee5a83c23a624bb752f22a69f853e3711118ec06
Branches: master
Link: http://git.php.net/?p=web/wiki.git;a=commitdiff;h=94d8bbc105d051cd8d32d7eddff43e3b5ecad69b
Log:
maybe the spammer won't notice this
Changed paths:
M dokuwiki/inc/mail.php
Diff:
diff --git a/dokuwiki/inc/mail.php b/dokuwiki/inc/mail.php
index d29828b..17a10b3 100644
--- a/dokuwiki/inc/mail.php
+++ b/dokuwiki/inc/mail.php
@@ -248,6 +248,10 @@ function mail_encode_address($string,$header='',$names=true){
* @return bool true if address is valid
*/
function mail_isvalid($email){
+ // temporary solution for the wiki reg spammer
+ if ($email == 'sample@email.tst') {
+ return false;
+ }
$validator = new EmailAddressValidator;
$validator->allowLocalAddresses = true;
return $validator->check_email_address($email);