diffs (24 lines):

diff -r eaf79dad5beb -r fb8df8611779 cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm     Mon Jun 08 14:39:13 2009 +0000
+++ b/cgi-bin/Apache/LiveJournal.pm     Mon Jun 08 15:02:22 2009 +0000
@@ -359,7 +359,7 @@ sub trans
                 return OK;
             }
         }
-        if ( LJ::run_hook( "forbid_request", $r ) {
+        if ( LJ::run_hook( "forbid_request", $r ) ) {
             $r->handler( "perl-script" );
             $r->push_handlers( PerlResponseHandler => \&blocked_bot );
             return OK;
diff -r eaf79dad5beb -r fb8df8611779 cgi-bin/LJ/UniqCookie.pm
--- a/cgi-bin/LJ/UniqCookie.pm  Mon Jun 08 14:39:13 2009 +0000
+++ b/cgi-bin/LJ/UniqCookie.pm  Mon Jun 08 15:02:22 2009 +0000
@@ -440,7 +440,7 @@ sub sysban_should_block {
 
     my $r = BML::get_request();
     my $uri = $r->uri;
-    return 0 if ( $LJ::BLOCKED_BOT_URI && index( $uri, $LJ::BLOCKED_BOT_URI ) 
== 0 );
+    return 0 if $LJ::BLOCKED_BOT_URI && index( $uri, $LJ::BLOCKED_BOT_URI ) == 
0;
 
     # if cookie exists, check for sysban
     if (my @cookieparts = $class->parts_from_cookie) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to