mirror of
https://github.com/friendica/friendica
synced 2025-01-25 16:19:46 +00:00
Ward against empty siteinfo in Text\BBCode::embedURL
- Address https://github.com/friendica/friendica/issues/11994#issuecomment-1349593196
This commit is contained in:
parent
060936d31e
commit
2497817c2a
1 changed files with 1 additions and 1 deletions
|
@ -2599,7 +2599,7 @@ class BBCode
|
||||||
// Bypass attachment if parse url for a comment
|
// Bypass attachment if parse url for a comment
|
||||||
if (!$tryAttachment) {
|
if (!$tryAttachment) {
|
||||||
DI::profiler()->stopRecording();
|
DI::profiler()->stopRecording();
|
||||||
return "\n" . '[url=' . $url . ']' . $siteinfo['title'] . '[/url]';
|
return "\n" . '[url=' . $url . ']' . ($siteinfo['title'] ?? $url) . '[/url]';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format it as BBCode attachment
|
// Format it as BBCode attachment
|
||||||
|
|
Loading…
Add table
Reference in a new issue