aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authormartin f. krafft <madduck@madduck.net>2008-03-11 14:00:30 +0100
committerJoey Hess <joey@kodama.kitenet.net>2008-03-11 15:51:11 -0400
commit23255257134b1abd662503e5ca63b17beeac39ed (patch)
tree56355c9c0ab343c23c4a5a77cc1a0a274746f59a /IkiWiki
parent0cac528b03a60b09fbec331ddb4f954ddb499fd5 (diff)
downloadikiwiki-23255257134b1abd662503e5ca63b17beeac39ed.tar
ikiwiki-23255257134b1abd662503e5ca63b17beeac39ed.tar.gz
Let meta.openid set X-XRDS-Location header
Adds an optional xrds-location parameter to the openid meta handler, which allows for XRDS delegation. A good document on XRDS is http://www.windley.com/archives/2007/05/using_xrds.shtml Signed-off-by: martin f. krafft <madduck@madduck.net>
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/meta.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index 2df5a727c..b98864722 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -145,6 +145,10 @@ sub preprocess (@) { #{{{
push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
'" rel="openid.delegate" />';
}
+ if (exists $params{xrds-location} && safeurl($params{xrds-location})) {
+ push @{$metaheaders{$page}}, '<meta http-equiv="X-XRDS-Location"'.
+ 'content="'.encode_entities($params{xrds-location}).'" />';
+ }
}
elsif ($key eq 'redir') {
return "" if $page ne $destpage;