From: Evan Prodromou Date: Sun, 24 Aug 2008 01:38:03 +0000 (-0400) Subject: be a little more liberal for sites that accidentally put whitespace before the xml... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a20a0385426b37bb84f05f04fa6fa39957d267f6;p=quix0rs-gnu-social.git be a little more liberal for sites that accidentally put whitespace before the xml decl darcs-hash:20080824013803-84dde-9c5d9ce9c588cfb9baddae64366e3417f0a5fee9.gz --- diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index d1baa4152f..407c5babbe 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).'));