mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Merge pull request #10165 from nupplaphil/bug/strip_pageinfo
Fix empty needle after trimming at PageInfo
This commit is contained in:
commit
715caa127b
1 changed files with 2 additions and 1 deletions
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue