]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check to see if XRDS discovery failed
authorEvan Prodromou <evan@prodromou.name>
Fri, 30 May 2008 18:11:03 +0000 (14:11 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 30 May 2008 18:11:03 +0000 (14:11 -0400)
darcs-hash:20080530181103-84dde-55eb7fce80ae6a11639ec9748c0d02f7f72cbc4d.gz

actions/remotesubscribe.php

index ca69b174e4468cf6d2251f906eaa03e5449a4b24..8f9dd3cb9ffc3528b6b2807f6bde0172c16afdec 100644 (file)
@@ -78,7 +78,7 @@ class RemotesubscribeAction extends Action {
                $fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
                $yadis = Auth_Yadis_Yadis::discover($profile, $fetcher);
                
-               if (!$yadis) {
+               if (!$yadis || $yadis->fail) {
                        $this->show_form(_t('Not a valid profile URL (no YADIS document).'));
                        return;
                }