summaryrefslogtreecommitdiff
path: root/actions/remotesubscribe.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-18 13:06:44 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-18 13:06:44 -0500
commita179a816b589d8fc097c7fff068dbe5b053e9e27 (patch)
tree7c96f7214d06f5ae0225dedabadc1fec176d1860 /actions/remotesubscribe.php
parent67340ce11c773287a4807ddc4567add775a3fcd7 (diff)
add some extra checks to avoid remote subscriptions to local users
darcs-hash:20081118180644-84dde-ab152249ac0844a482029b7e0f8db2780a0f15d6.gz
Diffstat (limited to 'actions/remotesubscribe.php')
-rw-r--r--actions/remotesubscribe.php7
1 files changed, 7 insertions, 0 deletions
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) {