summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-23 21:38:03 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-23 21:38:03 -0400
commita20a0385426b37bb84f05f04fa6fa39957d267f6 (patch)
tree4cd908bf2ca8574da93f2ff1837ea7393ceb6a6b
parent7d6e1bb47f823eee410126c314981ef042a27bd8 (diff)
be a little more liberal for sites that accidentally put whitespace before the xml decl
darcs-hash:20080824013803-84dde-9c5d9ce9c588cfb9baddae64366e3417f0a5fee9.gz
-rw-r--r--actions/remotesubscribe.php4
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).'));