From 932397b47be25b042907ab888e3abcb51cbb84b2 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 27 Jun 2011 19:47:55 -0700 Subject: [PATCH] trim webfinger request --- boot.php | 2 ++ mod/webfinger.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 7419ddff99..5f4820b4f1 100644 --- a/boot.php +++ b/boot.php @@ -1685,8 +1685,10 @@ function fetch_lrdd_template($host) { $url1 = 'https://' . $host . '/.well-known/host-meta' ; $url2 = 'http://' . $host . '/.well-known/host-meta' ; $links = fetch_xrd_links($url1); + logger('fetch_lrdd_template from: ' . $url1); logger('template (https): ' . print_r($links,true)); if(! count($links)) { + logger('fetch_lrdd_template from: ' . $url2); $links = fetch_xrd_links($url2); logger('template (http): ' . print_r($links,true)); } diff --git a/mod/webfinger.php b/mod/webfinger.php index 5ef29e43f1..f6d6026b40 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -13,7 +13,7 @@ function webfinger_content(&$a) { $o .= '

'; if(x($_GET,'addr')) { - $addr = $_GET['addr']; + $addr = trim($_GET['addr']); if(strpos($addr,'@' !== false)) $res = webfinger($addr); else