mirror of
https://github.com/friendica/friendica
synced 2024-12-23 18:00:17 +00:00
Avoid a guid whith spaces.
This commit is contained in:
parent
ec90a9e6ad
commit
7e7cac19f6
1 changed files with 2 additions and 1 deletions
|
@ -2611,8 +2611,9 @@ class diaspora {
|
||||||
$link = $matches[1];
|
$link = $matches[1];
|
||||||
|
|
||||||
$ret["root_guid"] = preg_replace("=https?://(.*)/posts/(.*)=ism", "$2", $link);
|
$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(false);
|
||||||
|
|
||||||
return($ret);
|
return($ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue