From a0928778ba38cf724513c7b2ba2e529f33025ddb Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 30 May 2008 14:53:43 -0400 Subject: [PATCH] check xrds object darcs-hash:20080530185343-84dde-90c12188656a29b0f34d8ffa27927f0f664fbd74.gz --- actions/remotesubscribe.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 64b220383c..0db58ec9ca 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) {