https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8f202
)
Fix empty needle after trimming at PageInfo
author
Philipp
<admin@philipp.info>
Fri, 23 Apr 2021 19:12:00 +0000
(21:12 +0200)
committer
Philipp
<admin@philipp.info>
Fri, 23 Apr 2021 19:12:00 +0000
(21:12 +0200)
src/Content/PageInfo.php
patch
|
blob
|
history
diff --git
a/src/Content/PageInfo.php
b/src/Content/PageInfo.php
index
e61db38
..
3fc5330
100644
(file)
--- 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 '';
}