be a little more liberal for sites that accidentally put whitespace before the xml decl

darcs-hash:20080824013803-84dde-9c5d9ce9c588cfb9baddae64366e3417f0a5fee9.gz
This commit is contained in:
Evan Prodromou 2008-08-23 21:38:03 -04:00
parent 7d6e1bb47f
commit a20a038542
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ class RemotesubscribeAction extends Action {
return;
}
$xrds =& Auth_Yadis_XRDS::parseXRDS($yadis->response_text);
# XXX: a little liberal for sites that accidentally put whitespace before the xml declaration
$xrds =& Auth_Yadis_XRDS::parseXRDS(trim($yadis->response_text));
if (!$xrds) {
$this->show_form(_('Not a valid profile URL (no XRDS defined).'));