[pLog-svn] r3261 - in plugins/trunk: authimage/class/security contentfilter/class/security dnsantispam/class/security hiddeninput/class/security hostblock/class/security moblog/class/security secret/class/security

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Wed Apr 19 06:19:02 GMT 2006


Author: pwestbro
Date: 2006-04-19 06:19:02 +0000 (Wed, 19 Apr 2006)
New Revision: 3261

Modified:
   plugins/trunk/authimage/class/security/authimagefilter.class.php
   plugins/trunk/contentfilter/class/security/contentfilter.class.php
   plugins/trunk/dnsantispam/class/security/dnsantispamfilter.class.php
   plugins/trunk/hiddeninput/class/security/hiddeninputfilter.class.php
   plugins/trunk/hostblock/class/security/hostsblacklist.class.php
   plugins/trunk/moblog/class/security/moblogbatchfilter.class.php
   plugins/trunk/secret/class/security/secretitemfilter.class.php
Log:
Changed these pipeline filters to just return when called with a rejected
message.  

At some point the dnsantispam filter could submit the ip address
to some blacklists


Modified: plugins/trunk/authimage/class/security/authimagefilter.class.php
===================================================================
--- plugins/trunk/authimage/class/security/authimagefilter.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/authimage/class/security/authimagefilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -44,6 +44,10 @@
                 return $result;
             }
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
             $config =& Config::getConfig();
             $cacheFolder = $config->getValue('temp_folder');
 			$cacheFolder = $cacheFolder.'/authimage/'.$blogInfo->getId();

Modified: plugins/trunk/contentfilter/class/security/contentfilter.class.php
===================================================================
--- plugins/trunk/contentfilter/class/security/contentfilter.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/contentfilter/class/security/contentfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -46,6 +46,10 @@
             include_once( PLOG_CLASS_PATH."plugins/contentfilter/class/dao/filteredcontents.class.php" );
             include_once( PLOG_CLASS_PATH."plugins/contentfilter/class/dao/filteredcontent.class.php" );            
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
             //
             // get the content that has been globally blocked by the admin(s)
             //

Modified: plugins/trunk/dnsantispam/class/security/dnsantispamfilter.class.php
===================================================================
--- plugins/trunk/dnsantispam/class/security/dnsantispamfilter.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/dnsantispam/class/security/dnsantispamfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -38,6 +38,10 @@
                 return $result;
             }
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
             // text and topic of the comment
             $commentText = $request->getValue( "commentText" );
             $commentTopic = $request->getValue( "commentTopic" );

Modified: plugins/trunk/hiddeninput/class/security/hiddeninputfilter.class.php
===================================================================
--- plugins/trunk/hiddeninput/class/security/hiddeninputfilter.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/hiddeninput/class/security/hiddeninputfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -45,6 +45,10 @@
                 return $result;
             }
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
 			$hiddenFields = $blogSettings->getValue( "plugin_hiddeninput_hiddenfields" );
 		    $hiddenFieldsList = explode(",", $hiddenFields);            
             

Modified: plugins/trunk/hostblock/class/security/hostsblacklist.class.php
===================================================================
--- plugins/trunk/hostblock/class/security/hostsblacklist.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/hostblock/class/security/hostsblacklist.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -33,6 +33,10 @@
             	return new PipelineResult();
             }            
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
             // get the list of blocked hosts for this blog
             $blockedHosts = new BlockedHosts();
             $hostsAccessBlocked = $blockedHosts->getBlogBlacklist( $blogInfo->getId(), BLOCK_ACCESS, true );

Modified: plugins/trunk/moblog/class/security/moblogbatchfilter.class.php
===================================================================
--- plugins/trunk/moblog/class/security/moblogbatchfilter.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/moblog/class/security/moblogbatchfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -53,6 +53,10 @@
                 return $result;
             }
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
 			$mailServer = $config->getValue('plugin_moblog_mailserver');
 			$port = $config->getValue('plugin_moblog_port');
 			$userName = $config->getValue('plugin_moblog_username');

Modified: plugins/trunk/secret/class/security/secretitemfilter.class.php
===================================================================
--- plugins/trunk/secret/class/security/secretitemfilter.class.php	2006-04-19 05:58:07 UTC (rev 3260)
+++ plugins/trunk/secret/class/security/secretitemfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
@@ -30,6 +30,10 @@
             $request  = $this->_pipelineRequest->getHttpRequest();
             $session  = HttpVars::getSession();         
             
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
             // get the article id from the request, since if it is available, then we know
             // that we have to ask for the password before we can let users watch it
             $articleId = $request->getValue( "articleId" );



More information about the pLog-svn mailing list