commit cec1bd1b749f597cd90a51dbe8b717d914843986
parent 00f5766ea442cdccd6377d49f95bfa1ed5f0d44b
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 31 Dec 2014 13:11:41 +0100
3
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/libs/OpenID/openid.php b/core/libs/OpenID/openid.php
@@ -434,7 +434,6 @@ class LightOpenID
echo "2";
$next = false;
if (isset($headers['x-xrds-location'])) {
- echo "3";
$url = $this->build_url(parse_url($url), parse_url(trim($headers['x-xrds-location'])));
$next = true;
}
@@ -443,6 +442,7 @@ class LightOpenID
&& (strpos($headers['content-type'], 'application/xrds+xml') !== false
|| strpos($headers['content-type'], 'text/xml') !== false)
) {
+ echo "3";
# Apparently, some providers return XRDS documents as text/html.
# While it is against the spec, allowing this here shouldn't break
# compatibility with anything.