aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-03 00:10:05 +0100
committerMax Kostikov <max@kostikov.co>2018-11-03 00:10:05 +0100
commita7624ea48bb89122ef23d59d977642994feb6ad5 (patch)
tree211191521bd3686d91216b0a41e6f9a53cfe1293 /Zotlabs/Module
parent2f3b4a7aafeaf92d9937aa71acce8e777c46f63d (diff)
downloadvolse-hubzilla-a7624ea48bb89122ef23d59d977642994feb6ad5.tar.gz
volse-hubzilla-a7624ea48bb89122ef23d59d977642994feb6ad5.tar.bz2
volse-hubzilla-a7624ea48bb89122ef23d59d977642994feb6ad5.zip
Update Linkinfo.php
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Linkinfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php
index 8ce82f7e9..623b574af 100644
--- a/Zotlabs/Module/Linkinfo.php
+++ b/Zotlabs/Module/Linkinfo.php
@@ -230,7 +230,7 @@ class Linkinfo extends \Zotlabs\Web\Controller {
$body = $result['body'];
// Check codepage in HTTP headers or HTML if not exist
- $cp = trim((preg_match('/Content-Type: text\/html; charset=(.+)/im', $header, $o) ? $o[1] : ''));
+ $cp = (preg_match('/Content-Type: text\/html; charset=(.+)/i', $header, $o) ? trim($o[1]) : '');
if(empty($cp))
$cp = (preg_match('/meta.+content=["|\']text\/html; charset=([^"|\']+)/i', $body, $o) ? $o[1] : 'AUTO');