Avoid a guid whith spaces.

This commit is contained in:
Michael Vogel 2016-03-24 21:32:55 +01:00 committed by Roland Haeder
parent 721b2edb33
commit 617e1768e1
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 2 additions and 1 deletions

View 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);
}