]> git.mxchange.org Git - friendica.git/commitdiff
trim webfinger request
authorFriendika <info@friendika.com>
Tue, 28 Jun 2011 02:47:55 +0000 (19:47 -0700)
committerFriendika <info@friendika.com>
Tue, 28 Jun 2011 02:47:55 +0000 (19:47 -0700)
boot.php
mod/webfinger.php

index 7419ddff99e70b71bf1d5b561ea7c9e4f4828dc4..5f4820b4f17c3f47aba86e9e8717bcdcfde6924f 100644 (file)
--- 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));
        }
index 5ef29e43f1679d3417851e14f35c0f1cd2edc8c3..f6d6026b406bfd0ce5ce76fddcfbac27574e844a 100644 (file)
@@ -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