2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[livejournal] r19963: LJM-1927: Zero version must be works onl...

Committer: slobin
LJM-1927: Zero version must be works only from supported IP

M LiveJournal.pm
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-09-05 10:27:55 UTC (rev 19962)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-09-06 03:58:08 UTC (rev 19963)
@@ -198,7 +198,12 @@
     LJ::Mob::Router::match_controller();
 
     if ( my $controller = LJ::Request->notes('controller') ) {
-        my $url = $controller->check_access(LJ::Request->notes('branding_id'), LJ::get_remote_ip);
+
+        # checking access for specific brandings
+        if(my $url = $controller->check_access(LJ::Request->notes('branding_id'), LJ::get_remote_ip)) {
+            return redir("http://".LJ::Request->hostname.$url);
+        }
+
         if ( LJ::Request->notes('method') eq '__setdomsess' ) {
             return redir(LJ::Session->setdomsess_handler())
         }

Tags: 2heoh, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments