[pLog-svn] r4426 - plugins/branches/lifetype-1.1/badbehavior/bad-behavior

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun Dec 24 00:00:05 GMT 2006


Author: jondaley
Date: 2006-12-24 00:00:04 +0000 (Sun, 24 Dec 2006)
New Revision: 4426

Modified:
   plugins/branches/lifetype-1.1/badbehavior/bad-behavior/common_tests.inc.php
Log:
added exception for LiveJournal OpenID checking

Modified: plugins/branches/lifetype-1.1/badbehavior/bad-behavior/common_tests.inc.php
===================================================================
--- plugins/branches/lifetype-1.1/badbehavior/bad-behavior/common_tests.inc.php	2006-12-23 23:20:58 UTC (rev 4425)
+++ plugins/branches/lifetype-1.1/badbehavior/bad-behavior/common_tests.inc.php	2006-12-24 00:00:04 UTC (rev 4426)
@@ -37,7 +37,8 @@
 	// Real user-agents do not start ranges at 0
 	// NOTE: this blocks the whois.sc bot. No big loss.
 	if (array_key_exists('Range', $package['headers_mixed']) && strpos($package['headers_mixed']['Range'], "=0-") !== FALSE) {
-		if (strncmp($ua, "MovableType", 11)) {
+            // LifeType mod: jondaley: LiveJournal uses URI::Fetch for OpenID checking
+		if (strncmp($ua, "MovableType", 11) && strncmp($ua, "URI::Fetch", 10)) {
 			return "7ad04a8a";
 		}
 	}



More information about the pLog-svn mailing list