From 3d84cef194ea08ef65edac975975158d9eb922fa Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Tue, 27 Apr 2010 10:42:20 +0000 Subject: [PATCH] =?UTF-8?q?-=20Patch=20#751578=20by=20G=C3=A1bor=20Hojtsy:?= =?UTF-8?q?=20OpenID=20realm=20was=20language=20dependent.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/openid/openid.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/openid/openid.module b/modules/openid/openid.module index afb6f86c1491..7411e0677c32 100644 --- a/modules/openid/openid.module +++ b/modules/openid/openid.module @@ -687,6 +687,8 @@ function openid_association_request($public) { } function openid_authentication_request($claimed_id, $identity, $return_to = '', $assoc_handle = '', $service) { + global $base_url; + module_load_include('inc', 'openid'); $request = array( @@ -699,10 +701,10 @@ function openid_authentication_request($claimed_id, $identity, $return_to = '', if ($service['version'] == 2) { $request['openid.ns'] = OPENID_NS_2_0; $request['openid.claimed_id'] = $claimed_id; - $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 .'/'; } // Always request Simple Registration. The specification doesn't mandate -- GitLab