aboutsummaryrefslogtreecommitdiffstats
path: root/mod/webfinger.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-24 17:59:31 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-24 17:59:31 -0700
commitd537fc854b89bc8af85f97ffcd637f8fb11bc601 (patch)
tree214fdd5b2bca5d981467a5f04314566a6bc51ea7 /mod/webfinger.php
parentd9061fd09ecdb4fe94ac6b2b99e8f35f613ad653 (diff)
downloadvolse-hubzilla-d537fc854b89bc8af85f97ffcd637f8fb11bc601.tar.gz
volse-hubzilla-d537fc854b89bc8af85f97ffcd637f8fb11bc601.tar.bz2
volse-hubzilla-d537fc854b89bc8af85f97ffcd637f8fb11bc601.zip
typo and update to rfc7033 (webfinger) as well as webfinger diagnostic page
Diffstat (limited to 'mod/webfinger.php')
-rw-r--r--mod/webfinger.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/webfinger.php b/mod/webfinger.php
index 74bd2c954..a646961a8 100644
--- a/mod/webfinger.php
+++ b/mod/webfinger.php
@@ -14,10 +14,15 @@ function webfinger_content(&$a) {
if(x($_GET,'addr')) {
$addr = trim($_GET['addr']);
- if(strpos($addr,'@' !== false))
- $res = webfinger($addr);
- else
- $res = lrdd($addr);
+ if(strpos($addr,'@') !== false) {
+ $res = webfinger_rfc7033($addr);
+ if(! $res)
+ $res = old_webfinger($addr);
+ }
+ else {
+ if(function_exists('lrdd'))
+ $res = lrdd($addr);
+ }
$o .= '<pre>';
$o .= str_replace("\n",'<br />',print_r($res,true));
$o .= '</pre>';