]> git.mxchange.org Git - friendica.git/commitdiff
Avoid a guid whith spaces.
authorMichael Vogel <icarus@dabo.de>
Thu, 24 Mar 2016 20:32:55 +0000 (21:32 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 24 Mar 2016 20:32:55 +0000 (21:32 +0100)
include/diaspora.php

index c5d6943e59cd187d6826af8065e1f878ff83e7a3..32190bc7d647c62c9cf54c0af806bee14fa0d6ad 100644 (file)
@@ -2611,8 +2611,9 @@ class diaspora {
                        $link = $matches[1];
 
                $ret["root_guid"] = preg_replace("=https?://(.*)/posts/(.*)=ism", "$2", $link);
-               if (($ret["root_guid"] == $link) OR ($ret["root_guid"] == ""))
+               if (($ret["root_guid"] == $link) OR (trim($ret["root_guid"]) == ""))
                        return(false);
+
                return($ret);
        }