]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check xrds object
authorEvan Prodromou <evan@prodromou.name>
Fri, 30 May 2008 18:53:43 +0000 (14:53 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 30 May 2008 18:53:43 +0000 (14:53 -0400)
darcs-hash:20080530185343-84dde-90c12188656a29b0f34d8ffa27927f0f664fbd74.gz

actions/remotesubscribe.php

index 64b220383cccf0fa5e90b386b49210c31ef0187e..0db58ec9caee21cf0e66e6b3bef3b1bf941196e8 100644 (file)
@@ -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) {