aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-02 22:40:48 +0100
committerMax Kostikov <max@kostikov.co>2018-11-02 22:40:48 +0100
commita9bbe0b12882db9d9c3192c3cd0055a50e9c34d5 (patch)
treeac60c467bf6af7543d72b0f6735a9e12438eed42 /Zotlabs
parent0d9d0a4b70a2dd73005089f1128f4d6fc10340ce (diff)
downloadvolse-hubzilla-a9bbe0b12882db9d9c3192c3cd0055a50e9c34d5.tar.gz
volse-hubzilla-a9bbe0b12882db9d9c3192c3cd0055a50e9c34d5.tar.bz2
volse-hubzilla-a9bbe0b12882db9d9c3192c3cd0055a50e9c34d5.zip
Update Linkinfo.php
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Linkinfo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php
index 4bd1deefb..6b067f6fd 100644
--- a/Zotlabs/Module/Linkinfo.php
+++ b/Zotlabs/Module/Linkinfo.php
@@ -230,9 +230,9 @@ class Linkinfo extends \Zotlabs\Web\Controller {
$body = $result['body'];
// Check codepage in page or in HTTP headers if not exist
- $cp = (preg_match('/meta.+content=["|\']text\/html;\s+charset=([^"|\']+)/i', $body, $o) ? $o[1] : '');
+ $cp = (preg_match('/meta.+content=["|\']text\/html; charset=([^"|\']+)/i', $body, $o) ? $o[1] : '');
if(empty($cp) || strtoupper($cp) == 'ISO-8859-5')
- $cp = (preg_match('/Content-Type: text\/html;\s+charset=(.+)/im', $header, $o) ? $o[1] : 'AUTO');
+ $cp = (preg_match('/Content-Type: text\/html; charset=(.+)/im', $header, $o) ? $o[1] : 'AUTO');
$body = mb_convert_encoding($body, 'UTF-8', $cp);
$body = mb_convert_encoding($body, 'HTML-ENTITIES', "UTF-8");