madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21677: LJSV-2133: Domain mapping broken for aut...

Committer: sbelyaev
LJSV-2133: Domain mapping broken for authorized users (work as redirect to login.bml)
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2012-04-09 11:05:01 UTC (rev 21676)
+++ trunk/cgi-bin/LJ/Session.pm	2012-04-09 11:07:40 UTC (rev 21677)
@@ -327,22 +327,6 @@
                http_only       => 1,
                @expires,);
 
-
-    my $curl = _current_url();
-    
-    if ( $sess->domain_journal($curl) eq '__external' ) {
-        $curl =~ m|^https?://(.+?)/|i;
-        my $domain = $1;
-        
-        set_cookie('ljdomsess.__external'
-                                   => $sess->loggedin_cookie_string,
-                   domain          => $domain,
-                   path            => '/',
-                   http_only       => 1,
-                   @expires,);
-    }
-
-
     $sess->owner->preload_props('schemepref', 'browselang');
 
     if (my $scheme = $sess->owner->prop('schemepref')) {
@@ -894,19 +878,6 @@
                path            => '/',
                delete          => 1);
 
-    my $curl = _current_url();
-    if ( $class->domain_journal($curl) eq '__external' ) {
-        $curl =~ m|^https?://(.+?)/|i;
-        my $domain = $1;
-
-        set_cookie('ljdomsess.__external'
-                                   => "",
-                   domain          => $domain,
-                   path            => '/',
-                   delete          => 1);
-    }
-
-
     # set fb global cookie
     if ($LJ::FB_SITEROOT) {
         my $fb_cookie = fb_cookie();

Tags: livejournal, madeon, pm, sbelyaev
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