mirror of
https://github.com/friendica/friendica
synced 2025-05-09 19:44:10 +02:00
A lot of Fixings
This commit is contained in:
parent
06371d29a6
commit
65ca164487
7 changed files with 16 additions and 25 deletions
|
@ -1195,7 +1195,7 @@ class BBCode
|
|||
if (is_null($text)) {
|
||||
$curlResult = DI::httpRequest()->head($match[1], ['timeout' => DI::config()->get('system', 'xrd_timeout')]);
|
||||
if ($curlResult->isSuccess()) {
|
||||
$mimetype = $curlResult->getHeader('Content-Type');
|
||||
$mimetype = $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
} else {
|
||||
$mimetype = '';
|
||||
}
|
||||
|
@ -1266,7 +1266,7 @@ class BBCode
|
|||
|
||||
$curlResult = DI::httpRequest()->head($match[1], ['timeout' => DI::config()->get('system', 'xrd_timeout')]);
|
||||
if ($curlResult->isSuccess()) {
|
||||
$mimetype = $curlResult->getHeader('Content-Type');
|
||||
$mimetype = $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
} else {
|
||||
$mimetype = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue