1
0
Fork 0

Merge pull request #10165 from nupplaphil/bug/strip_pageinfo

Fix empty needle after trimming at PageInfo
This commit is contained in:
Hypolite Petovan 2021-04-23 23:04:27 -04:00 committed by GitHub
commit 715caa127b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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