Page 1 of 1

Patch to serendipity_event_spamblock to filter on e-mail

Posted: Fri Dec 29, 2006 1:05 pm
by Boris
Hi,

I just noticed that a current wave of comment-spam to my blog always contained the same E-mail-address so I dicided to block that one, but I did not find any option in serendipity_event_spamblock.

The code is completely derived from the existing body-filter.

http://download.yousendit.com/60D1284313F5DEDF
(link valid for 7 days)

I added to the description, that you have to escape @ (which is used als the reg-exp-seperator). I also updated the corresponding german, spanish and dutch language strings as good as I (respectively my girl-friend) could.

Posted: Fri Dec 29, 2006 2:50 pm
by stm999999999
hm, isn't there a symbol right near every mail-address in the admin-comments-section to block this address?

Posted: Fri Dec 29, 2006 2:55 pm
by Boris
stm999999999 wrote:hm, isn't there a symbol right near every mail-address in the admin-comments-section to block this address?
I can't see such symbol neither at my live-installation (1.1) nor at my test-installation (current svn).

Perhaps you have another plugin or I'm just blind.

Posted: Fri Dec 29, 2006 3:12 pm
by stm999999999
Hm, I see, the symbol is only for URL and name, but not EMail ...

Image

Posted: Fri Dec 29, 2006 4:11 pm
by Boris
stm999999999 wrote:Hm, I see, the symbol is only for URL and name, but not EMail ...
I just improved the patch, so it does generate this symbol for E-mail too.

Image

Posted: Fri Dec 29, 2006 11:37 pm
by garvinhicking
Hi!

Thanks a lot, I committed the patch!

HTH,
GArvin