[pLog-svn] r3262 - in plugins/trunk: hotlinkprevention/class/security secretblog/class/security

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Wed Apr 19 07:01:36 GMT 2006


Author: pwestbro
Date: 2006-04-19 07:01:35 +0000 (Wed, 19 Apr 2006)
New Revision: 3262

Modified:
   plugins/trunk/hotlinkprevention/class/security/hotlinkpreventionfilter.class.php
   plugins/trunk/secretblog/class/security/secretblogfilter.class.php
Log:
Forgot these filters with the previous change


Modified: plugins/trunk/hotlinkprevention/class/security/hotlinkpreventionfilter.class.php
===================================================================
--- plugins/trunk/hotlinkprevention/class/security/hotlinkpreventionfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
+++ plugins/trunk/hotlinkprevention/class/security/hotlinkpreventionfilter.class.php	2006-04-19 07:01:35 UTC (rev 3262)
@@ -29,6 +29,10 @@
 			$globalBlankRefererEnabled = $config->getValue( "plugin_globalhotlinkprevention_blankrefererenabled" );
 			$globalAllowReferers = $config->getValue( "plugin_globalhotlinkprevention_allowreferers" );
 
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
 			// load blog configuration settings
 			$blogSettings = $blogInfo->getSettings();
 			if ( $blogSettings->keyExists( "plugin_hotlinkprevention_enabled" ) ) {

Modified: plugins/trunk/secretblog/class/security/secretblogfilter.class.php
===================================================================
--- plugins/trunk/secretblog/class/security/secretblogfilter.class.php	2006-04-19 06:19:02 UTC (rev 3261)
+++ plugins/trunk/secretblog/class/security/secretblogfilter.class.php	2006-04-19 07:01:35 UTC (rev 3262)
@@ -24,6 +24,10 @@
     	        return( $result );        	
         	}
             
+            // if this is already rejected, there is no reason to do anything here
+            if ( $this->_pipelineRequest->getRejectedState() )
+                return new PipelineResult();
+                
             // there are three possible situations:
             // - user not authenticated
             // - user not authenticated but blogPassword parameter in the request



More information about the pLog-svn mailing list