madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22289: LJSV-2128: Redirection to login page for...

Committer: sbelyaev
LJSV-2128: Redirection to login page for pages not requiring a login
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2012-06-20 11:20:19 UTC (rev 22288)
+++ trunk/cgi-bin/LJ/Session.pm	2012-06-20 11:45:47 UTC (rev 22289)
@@ -466,11 +466,11 @@
 
     unless ($u) {
         LJ::Session->clear_master_cookie;
-        return;
+        return $dest;
     }
 
     my $domcook = LJ::Session->domain_cookie($dest) or
-        return;
+        return $dest;
 
     my $sess = $u->session;
     my $cookie = $sess->domsess_cookie_string($domcook);
@@ -495,7 +495,7 @@
              . "&v=" . LJ::eurl($cookie);
     }
 
-    return;
+    return $dest;
 }
 
 # given a URL (or none, for current url), what domain cookie represents this URL?

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