summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2012-04-16 14:47:39 (GMT)
committer Gábor Hojtsy2012-04-16 14:47:39 (GMT)
commit0ef4b8924f027e54a26a887e6994e9585e79c16a (patch)
treed07bf2a5a135a3b7d7749872fb3e947e151dd5c2
parent6ea173ecc67b506d0acaabeda59fe09d467eb852 (diff)
Issue #751578 by xamanu, sanduhrs, Gábor Hojtsy: OpenID realm should not be language dependent.
-rw-r--r--modules/openid/openid.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/openid/openid.module b/modules/openid/openid.module
index 71e0f5b..809e07e 100644
--- a/modules/openid/openid.module
+++ b/modules/openid/openid.module
@@ -499,6 +499,8 @@ function openid_association_request($public) {
}
function openid_authentication_request($claimed_id, $identity, $return_to = '', $assoc_handle = '', $version = 2) {
+ global $base_url;
+
module_load_include('inc', 'openid');
$ns = ($version == 2) ? OPENID_NS_2_0 : OPENID_NS_1_0;
@@ -512,10 +514,10 @@ function openid_authentication_request($claimed_id, $identity, $return_to = '',
);
if ($version == 2) {
- $request['openid.realm'] = url('', array('absolute' => TRUE));
+ $request['openid.realm'] = $base_url . '/';
}
else {
- $request['openid.trust_root'] = url('', array('absolute' => TRUE));
+ $request['openid.trust_root'] = $base_url . '/';
}
// Simple Registration