[pLog-svn] r3338 - plugins/trunk/0ipabuse/class/security
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Fri May 5 05:42:23 GMT 2006
Author: pwestbro
Date: 2006-05-05 05:42:22 +0000 (Fri, 05 May 2006)
New Revision: 3338
Modified:
plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php
Log:
Added trackback support to the ip abuse plugin
Modified: plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php
===================================================================
--- plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php 2006-05-05 05:28:47 UTC (rev 3337)
+++ plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php 2006-05-05 05:42:22 UTC (rev 3338)
@@ -33,10 +33,11 @@
// we only have to filter the contents if the user is posting a comment
// so there's no point in doing anything else if that's not the case
- if( $request->getValue( "op" ) != "AddComment" ) {
+ if( $request->getValue( "op" ) != "AddComment" && $request->getValue( "op" ) != "AddTrackback") {
$result = new PipelineResult();
return $result;
}
+
// if this is already rejected, there is no reason to do anything here
// In the future this could submit the up address, and the urls to
@@ -94,7 +95,7 @@
}
$newValueInt = $numAccesses + 1;
- dba_replace($clientIp, "$newValueInt", $db);
+ dba_replace($clientIp, "$newValueInt", $db);
}
else {
// Add an entry for this ip address
More information about the pLog-svn
mailing list