[pLog-svn] r1401 - plog/trunk

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri Mar 11 16:14:35 GMT 2005


Author: oscar
Date: 2005-03-11 16:14:34 +0000 (Fri, 11 Mar 2005)
New Revision: 1401

Modified:
   plog/trunk/trackback.php
Log:
fixed issue 324 (http://bugs.plogworld.net/view.php?id=324), where blogs that
had been disabled were still able to receive trackbacks


Modified: plog/trunk/trackback.php
===================================================================
--- plog/trunk/trackback.php	2005-03-11 16:12:00 UTC (rev 1400)
+++ plog/trunk/trackback.php	2005-03-11 16:14:34 UTC (rev 1401)
@@ -142,6 +142,13 @@
 		die( $result );
 	}
 	
+	// if the blog is disabled, then we shoulnd't take trackbacks...
+	if( $blogInfo->getStatus() != BLOG_STATUS_ACTIVE ) {
+		trackbackLog( "ERROR: The blog ".$blogInfo->getBlog()." is set as disabled and cannot receive trackbacks!" );
+		$result = errorResponse( "The blog is not active" );
+		die( $result );
+	}
+	
 	// if everything went fine, load the plugins so that we can throw some events...
     $pm =& PluginManager::getPluginManager();
     $pm->loadPlugins();




More information about the pLog-svn mailing list