check to see if XRDS discovery failed

darcs-hash:20080530181103-84dde-55eb7fce80ae6a11639ec9748c0d02f7f72cbc4d.gz
This commit is contained in:
Evan Prodromou 2008-05-30 14:11:03 -04:00
parent 3a20f1202b
commit d3dd804ddf

View 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;
}