Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13057/plugins/serendipity_event_spamblock
Modified Files:
serendipity_event_spamblock.php
Log Message:
Hotfix for the bug that is causing the spamblock plugin to block trackbacks.
See mailinglist...
Index: serendipity_event_spamblock.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- serendipity_event_spamblock.php 28 Sep 2004 21:07:12 -0000 1.22
+++ serendipity_event_spamblock.php 7 Oct 2004 08:18:20 -0000 1.23
@@ -230,7 +230,7 @@
$hooks = &$bag->get('event_hooks');
- if (isset($hooks[$event])) {
+ if (isset($hooks[$event]) && @$_REQUEST['type'] != 'trackback' && @$_REQUEST['type'] != 'pingback') {
$captchas_ttl = $this->get_config('captchas_ttl', 7);
$captchas = (serendipity_db_bool($this->get_config('captchas', true)) ? true : false);
// Check if the entry is older than the allowed amount of time. Enforce kaptchas if that is true
|