From 1d867396fa2e4737066a05990b570ea5a2e56d1d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 14:26:47 -0400 Subject: add xrds for trust root URL darcs-hash:20080618182647-84dde-e75e2c3441e8441ad6602f36fd9b7bf6ca39e70d.gz --- lib/openid.php | 2 +- lib/util.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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': -- cgit v1.2.3-54-g00ecf