summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 14:26:47 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 14:26:47 -0400
commit1d867396fa2e4737066a05990b570ea5a2e56d1d (patch)
tree346bfc5da63eef04d8ea6b86e377e15c61d0db36 /lib
parent7ce5ed80811cd553940882b5ef5a1f7f235e71f2 (diff)
add xrds for trust root URL
darcs-hash:20080618182647-84dde-e75e2c3441e8441ad6602f36fd9b7bf6ca39e70d.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/openid.php2
-rw-r--r--lib/util.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/openid.php b/lib/openid.php
index c98ff8bfc..48c2a6cb1 100644
--- a/lib/openid.php
+++ b/lib/openid.php
@@ -95,7 +95,7 @@ function oid_authenticate($openid_url, $returnto) {
$auth_request->addExtension($sreg_request);
}
- $trust_root = common_root_url();
+ $trust_root = common_local_url($public);
$process_url = common_local_url($returnto);
if ($auth_request->shouldSendRedirect()) {
diff --git a/lib/util.php b/lib/util.php
index 5091c4bad..9b4415c17 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -530,6 +530,8 @@ function common_fancy_url($action, $args=NULL) {
}
case 'publicrss':
return common_path('rss');
+ case 'publicxrds':
+ return common_path('xrds');
case 'doc':
return common_path('doc/'.$args['title']);
case 'login':