diff options
author | Max Kostikov <max@kostikov.co> | 2018-10-24 10:28:18 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-10-24 10:28:18 +0200 |
commit | 24d68a7f09d00540ed181498239b954afe042db0 (patch) | |
tree | be0112497b338f1ed8e113d29ada40d917c034a4 /Zotlabs/Module | |
parent | 781eeff021f279800a28f1ada4d766be6dbdd824 (diff) | |
download | volse-hubzilla-24d68a7f09d00540ed181498239b954afe042db0.tar.gz volse-hubzilla-24d68a7f09d00540ed181498239b954afe042db0.tar.bz2 volse-hubzilla-24d68a7f09d00540ed181498239b954afe042db0.zip |
Update Linkinfo.php
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Linkinfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php index 8666976af..a0ad17e68 100644 --- a/Zotlabs/Module/Linkinfo.php +++ b/Zotlabs/Module/Linkinfo.php @@ -229,7 +229,7 @@ class Linkinfo extends \Zotlabs\Web\Controller { $header = $result['header']; $body = $result['body']; - $body = mb_convert_encoding($body, 'UTF-8', (preg_match('/meta\s+http-equiv=.content-type.+;\s+charset=([^"|\']+)/i', $body, $o) ? $o[1] : 'UTF-8')); + $body = mb_convert_encoding($body, 'UTF-8', (preg_match('/meta.+content=["|\']text\/html;\s+charset=([^"|\']+)/i', $body, $o) ? $o[1] : 'UTF-8')); $body = mb_convert_encoding($body, 'HTML-ENTITIES', "UTF-8"); $doc = new \DOMDocument(); |