]> git.mxchange.org Git - friendica.git/commitdiff
more intro fix
authorMike Macgirvin <mike@macgirvin.com>
Wed, 21 Jul 2010 04:00:49 +0000 (21:00 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Wed, 21 Jul 2010 04:00:49 +0000 (21:00 -0700)
mod/dfrn_request.php

index 7db61d35b88c7b05b242edbd078d1a9dc215a1e3..4b41c9c6cc14ac6b041f59c27d74bca02cec1577 100644 (file)
@@ -33,7 +33,7 @@ function dfrn_request_post(&$a) {
        // callback to local site after remote request and local confirm
 
        if((x($_POST,'localconfirm')) && ($_POST['localconfirm'] == 1) 
-               && local_user() && ($_SESSION['uid'] == $a->argv[1]) && (x($_POST,'dfrn_url'))) {
+               && local_user() && ($a->user['nickname'] == $a->argv[1]) && (x($_POST,'dfrn_url'))) {
 
                // We are the requestor, and we've been sent back to our own site
                // to confirm the request. We've done so and clicked submit,
@@ -136,6 +136,9 @@ function dfrn_request_post(&$a) {
                notice( "Unrecoverable protocol error." . EOL );
                goaway($a->get_baseurl());
        }
+       // extra safety
+       if($_POST['localconfirm'])
+               return;
 
 
        // we are operating as a remote site and an introduction was requested of us.