Update Linkinfo.php
This commit is contained in:
parent
f180558041
commit
3e6c2c6024
@ -228,10 +228,8 @@ class Linkinfo extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$header = $result['header'];
|
$header = $result['header'];
|
||||||
$body = $result['body'];
|
$body = $result['body'];
|
||||||
|
|
||||||
$x = preg_match('/<meta\s+http-equiv=.content-type.+; charset=([^"|\']+)/i', $body, $o);
|
$body = mb_convert_encoding($body, 'UTF-8', (preg_match('/<meta\s+http-equiv=.content-type.+; charset=([^"|\']+)/i', $body, $o) ? $o[1] : 'UTF-8'));
|
||||||
|
|
||||||
$body = mb_convert_encoding($body, 'UTF-8', ($o[1] ? $o[1] : 'UTF-8'));
|
|
||||||
$body = mb_convert_encoding($body, 'HTML-ENTITIES', "UTF-8");
|
$body = mb_convert_encoding($body, 'HTML-ENTITIES', "UTF-8");
|
||||||
|
|
||||||
$doc = new \DOMDocument();
|
$doc = new \DOMDocument();
|
||||||
|
Reference in New Issue
Block a user