pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] changelog2009-06-08 03:02 pm

[dw-free] - Fix syntax error introduced in changeset 1059

[commit: http://hg.dwscoalition.org/dw-free/rev/fb8df8611779]

- Fix syntax error introduced in changeset 1059
- Styleguide compliance

Files modified:
  • cgi-bin/Apache/LiveJournal.pm
  • cgi-bin/LJ/UniqCookie.pm
--------------------------------------------------------------------------------
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) {
--------------------------------------------------------------------------------