more intro fix

This commit is contained in:
Mike Macgirvin 2010-07-20 21:00:49 -07:00
parent db99f3abda
commit 023dd993f6

View file

@ -33,7 +33,7 @@ function dfrn_request_post(&$a) {
// callback to local site after remote request and local confirm // callback to local site after remote request and local confirm
if((x($_POST,'localconfirm')) && ($_POST['localconfirm'] == 1) 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 // 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, // 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 ); notice( "Unrecoverable protocol error." . EOL );
goaway($a->get_baseurl()); goaway($a->get_baseurl());
} }
// extra safety
if($_POST['localconfirm'])
return;
// we are operating as a remote site and an introduction was requested of us. // we are operating as a remote site and an introduction was requested of us.