]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix login redirect to calling page
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 11 Dec 2005 06:50:06 +0000 (07:50 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 11 Dec 2005 06:50:06 +0000 (07:50 +0100)
functions.php

index eedb9ab7b9d2815ddc980950ab3a8c098a7f0aa0..dbdc1ce69bc0d2a5556ee752731f70b4e9a7c606 100644 (file)
                        if (!USE_HTTP_AUTH) {
                                if (!$_SESSION["uid"]) {
                                        $redirect_uri = get_login_redirect();
-                                       header("Location: $redirect_uri?rt=tt-rss.php");
+                                       $return_to = preg_replace('/.*?\//', '', $_SERVER["REQUEST_URI"]);
+                                       header("Location: $redirect_uri?rt=$return_to");
                                        exit;
                                }
                        } else {