From 7e7cac19f62cef5fe52660a9312ac01a7d3f74a2 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 24 Mar 2016 21:32:55 +0100 Subject: [PATCH] Avoid a guid whith spaces. --- include/diaspora.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/diaspora.php b/include/diaspora.php index c5d6943e59..32190bc7d6 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -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); }