Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19442: LJSUP-9234: Redirect to login page if vi...

Committer: gariev
LJSUP-9234: Redirect to login page if viewing non-public friends group
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-07-06 03:32:11 UTC (rev 19441)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-07-06 05:44:10 UTC (rev 19442)
@@ -301,11 +301,7 @@
              return;
             return $err->(BML::ml('talk.error.notauthorised'));
         } else {
-            my $host = LJ::Request->header_in("Host");
-            my $args = scalar LJ::Request->args;
-            my $querysep = $args ? "?" : "";
-            my $redir = LJ::eurl("http://" . $host . LJ::Request->uri . $querysep . $args);
-
+            my $redir = LJ::eurl( LJ::Request->current_page_url );
             return $err->(BML::redirect("$LJ::SITEROOT/?returnto=$redir&errmsg=notloggedin"));
         }
     }

Tags: gariev, 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