]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
be a little more liberal for sites that accidentally put whitespace before the xml...
authorEvan Prodromou <evan@prodromou.name>
Sun, 24 Aug 2008 01:38:03 +0000 (21:38 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 24 Aug 2008 01:38:03 +0000 (21:38 -0400)
darcs-hash:20080824013803-84dde-9c5d9ce9c588cfb9baddae64366e3417f0a5fee9.gz

actions/remotesubscribe.php

index d1baa4152f6c1a82db8c9ffbbd5c122473d0cea8..407c5babbe4938bd5a4e2eb2098fd4e64ede6cb2 100644 (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).'));