diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-04-03 13:24:01 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-04-03 13:24:01 -0700 |
commit | 590cc0c9a41206ba58c9333b4e9ef8931285f7e4 (patch) | |
tree | 6b6457534c26890e4d5912bc1afeabd63cf9c0c7 /lib/openid.php | |
parent | ab2946047cd08c6b66cbc57410fa8a99430530f6 (diff) | |
parent | 81c72956a615eee04cf3770b4e197dd7fe563357 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'lib/openid.php')
-rw-r--r-- | lib/openid.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/openid.php b/lib/openid.php index 3aa488b6d..3af7a39cf 100644 --- a/lib/openid.php +++ b/lib/openid.php @@ -160,7 +160,7 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) $auth_request->addExtension($sreg_request); } - $trust_root = common_path(''); + $trust_root = common_root_url(true); $process_url = common_local_url($returnto); if ($auth_request->shouldSendRedirect()) { @@ -171,7 +171,7 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) } else if (Auth_OpenID::isFailure($redirect_url)) { return sprintf(_('Could not redirect to server: %s'), $redirect_url->message); } else { - common_redirect($redirect_url); + common_redirect($redirect_url, 303); } } else { // Generate form markup and render it. |