Fix empty needle after trimming at PageInfo

pull/10165/head
Philipp 2021-04-23 21:12:00 +02:00
parent 5a8f202158
commit 6acedcb25e
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD
1 changed files with 2 additions and 1 deletions

View File

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