From a179a816b589d8fc097c7fff068dbe5b053e9e27 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 18 Nov 2008 13:06:44 -0500 Subject: add some extra checks to avoid remote subscriptions to local users darcs-hash:20081118180644-84dde-ab152249ac0844a482029b7e0f8db2780a0f15d6.gz --- actions/remotesubscribe.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actions/remotesubscribe.php') diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 7137b42a2..2c932178f 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -130,6 +130,13 @@ class RemotesubscribeAction extends Action { return; } + if (omb_service_uri($omb[OAUTH_ENDPOINT_REQUEST]) == + common_local_url('requesttoken')) + { + $this->show_form(_('That\'s a local profile! Login to subscribe.')); + return; + } + list($token, $secret) = $this->request_token($omb); if (!$token || !$secret) { -- cgit v1.2.3-54-g00ecf