diff options
author | Michiel de Jong <michiel@unhosted.org> | 2012-05-11 15:26:45 +0200 |
---|---|---|
committer | Michiel de Jong <michiel@unhosted.org> | 2012-05-11 15:26:45 +0200 |
commit | 4c02a82f6cfad89254f981b848dff5570cf21ab6 (patch) | |
tree | 587dcc5e62f8166c10b31702872f9b78eaa8038a /apps/user_webfinger | |
parent | b133f22d7f09a12cf69117a8471cee4bce717ad1 (diff) | |
download | nextcloud-server-4c02a82f6cfad89254f981b848dff5570cf21ab6.tar.gz nextcloud-server-4c02a82f6cfad89254f981b848dff5570cf21ab6.zip |
move lrdd to jrd
Diffstat (limited to 'apps/user_webfinger')
-rwxr-xr-x | apps/user_webfinger/webfinger.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/user_webfinger/webfinger.php b/apps/user_webfinger/webfinger.php index 4ea9b80c98c..e75c546c2cb 100755 --- a/apps/user_webfinger/webfinger.php +++ b/apps/user_webfinger/webfinger.php @@ -1,6 +1,6 @@ <?php header("Access-Control-Allow-Origin: *"); -header("Content-Type: application/xrd+xml"); +header("Content-Type: application/xrd+json"); /** * To include your app in the webfinger XML, add a new script with file name @@ -55,14 +55,7 @@ if(empty($id)) { define('WF_USER', $userName); define('WF_ID', $id); define('WF_BASEURL', $baseAddress); -echo "<"; -?> -?xml version="1.0" encoding="UTF-8"?> -<?php if(empty($id)) echo '<!-- Invalid URI: ' . str_replace('>', '/>', $request) . " -->\n"; ?> -<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xmlns:hm="http://host-meta.net/xrd/1.0"> - <hm:Host xmlns="http://host-meta.net/xrd/1.0"><?php echo $_SERVER['SERVER_NAME']; ?></hm:Host> - <Subject>acct:<?php echo $id ?></Subject> -<?php +echo "{\"links\":["; $apps = OC_Appconfig::getApps(); foreach($apps as $app) { if(OCP\App::isEnabled($app)) { @@ -71,5 +64,5 @@ foreach($apps as $app) { } } } +echo "]}"; ?> -</XRD> |