From a7624ea48bb89122ef23d59d977642994feb6ad5 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sat, 3 Nov 2018 00:10:05 +0100 Subject: Update Linkinfo.php --- Zotlabs/Module/Linkinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs') 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'); -- cgit v1.2.3