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 ''; }