diff options
author | Friendika <info@friendika.com> | 2011-06-27 19:47:55 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-27 19:47:55 -0700 |
commit | 932397b47be25b042907ab888e3abcb51cbb84b2 (patch) | |
tree | 7fdf0e49df055db4f2bd598f1d511076e94aa010 | |
parent | 4418cb4349341064690cfbe6d4f26542cf108203 (diff) | |
download | volse-hubzilla-932397b47be25b042907ab888e3abcb51cbb84b2.tar.gz volse-hubzilla-932397b47be25b042907ab888e3abcb51cbb84b2.tar.bz2 volse-hubzilla-932397b47be25b042907ab888e3abcb51cbb84b2.zip |
trim webfinger request
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | mod/webfinger.php | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 5ef29e43f..f6d6026b4 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -13,7 +13,7 @@ function webfinger_content(&$a) { $o .= '<br /><br />'; if(x($_GET,'addr')) { - $addr = $_GET['addr']; + $addr = trim($_GET['addr']); if(strpos($addr,'@' !== false)) $res = webfinger($addr); else |