]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
some openid fixes, use identity url from openid server and normalise it.
[friendica.git] / boot.php
index d5feaed2d148402c53abd5853d5efa5acf2cb2fb..9779bb9a8f1bb686211816beef17863dfa032b8c 100755 (executable)
--- a/boot.php
+++ b/boot.php
@@ -713,15 +713,16 @@ function login($register = false, $hiddens=false) {
 
        $noid = get_config('system','no_openid');
        
+       $dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
+
        if(local_user()) {
                $tpl = get_markup_template("logout.tpl");
        }
        else {
                $tpl = get_markup_template("login.tpl");
-
+               $_SESSION['return_url'] = $a->query_string;
        }
 
-       $dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
 
        $o .= replace_macros($tpl,array(