From 6acedcb25e6f3f06f02deef5d25ded35ba5500ea Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 23 Apr 2021 21:12:00 +0200 Subject: [PATCH] Fix empty needle after trimming at PageInfo --- src/Content/PageInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ''; }