From a20a0385426b37bb84f05f04fa6fa39957d267f6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 23 Aug 2008 21:38:03 -0400 Subject: be a little more liberal for sites that accidentally put whitespace before the xml decl darcs-hash:20080824013803-84dde-9c5d9ce9c588cfb9baddae64366e3417f0a5fee9.gz --- actions/remotesubscribe.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actions') 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).')); -- cgit v1.2.3-54-g00ecf