diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-30 14:53:43 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-30 14:53:43 -0400 |
commit | a0928778ba38cf724513c7b2ba2e529f33025ddb (patch) | |
tree | 34f6c493e95cefa772b9deb90a7ea5d39f9b4865 /actions/remotesubscribe.php | |
parent | 0cb0a5ce1da138c89fb4386869b6081570657ba6 (diff) |
check xrds object
darcs-hash:20080530185343-84dde-90c12188656a29b0f34d8ffa27927f0f664fbd74.gz
Diffstat (limited to 'actions/remotesubscribe.php')
-rw-r--r-- | actions/remotesubscribe.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 64b220383..0db58ec9c 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -85,6 +85,13 @@ class RemotesubscribeAction extends Action { return; } + if (!$yadis->xrds) { + $this->show_form(_t('Not a valid profile URL (no XRDS defined).')); + return; + } + + common_debug('remotesubscribe.php: XRDS is "'.print_r($yadis->xrds,TRUE).'"'); + $omb = $this->getOmb($yadis); if (!$omb) { |