From: Philipp Date: Fri, 23 Apr 2021 19:12:00 +0000 (+0200) Subject: Fix empty needle after trimming at PageInfo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6acedcb25e6f3f06f02deef5d25ded35ba5500ea;p=friendica.git Fix empty needle after trimming at PageInfo --- diff --git a/src/Content/PageInfo.php b/src/Content/PageInfo.php index e61db3865d..3fc5330938 100644 --- a/src/Content/PageInfo.php +++ b/src/Content/PageInfo.php @@ -292,7 +292,8 @@ class PageInfo } // Stripping link labels that include a shortened version of the URL - if (strpos($url, trim($match[1], '.…')) !== false) { + $trimMatch = trim($match[1], '.…'); + if (!empty($trimMatch) && strpos($url, $trimMatch) !== false) { return ''; }