diff options
-rw-r--r-- | actions/remotesubscribe.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index d1baa4152..407c5babb 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -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).')); |