[pLog-svn] r3380 - plugins/trunk/hostblock/class/security
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed May 10 14:34:36 GMT 2006
Author: oscar
Date: 2006-05-10 14:34:36 +0000 (Wed, 10 May 2006)
New Revision: 3380
Modified:
plugins/trunk/hostblock/class/security/hostsblacklist.class.php
Log:
and this allows the hostblock plugin to work on trackbacks too.
Modified: plugins/trunk/hostblock/class/security/hostsblacklist.class.php
===================================================================
--- plugins/trunk/hostblock/class/security/hostsblacklist.class.php 2006-05-10 14:31:53 UTC (rev 3379)
+++ plugins/trunk/hostblock/class/security/hostsblacklist.class.php 2006-05-10 14:34:36 UTC (rev 3380)
@@ -58,7 +58,7 @@
//
// and now if we're posting a comment, check the ips
//
- if( $request->getValue( "op" ) == "AddComment" ) {
+ if( $request->getValue( "op" ) == "AddComment" || $request->getValue( "op" ) == "AddTrackback" ) {
foreach( $hostsPostCommentBlocked as $hostPostCommendBlocked ) {
if( $ipMatchValidator->validate( $clientIp, $hostPostCommendBlocked->getCidrAddress())) {
return new PipelineResult( false, HOST_BLACKLIST_COMMENT_BLOCKED_HOST_FOUND, $hostPostCommendBlocked->getReason());
More information about the pLog-svn
mailing list