aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Linkinfo.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-23 20:36:30 +0200
committerMax Kostikov <max@kostikov.co>2018-10-23 20:36:30 +0200
commit781eeff021f279800a28f1ada4d766be6dbdd824 (patch)
tree45044b852b2ca28e9f1cc241a46c1aa8cbcab2eb /Zotlabs/Module/Linkinfo.php
parent3e6c2c60248051b17f96d98a54b8dcdd43bc7115 (diff)
downloadvolse-hubzilla-781eeff021f279800a28f1ada4d766be6dbdd824.tar.gz
volse-hubzilla-781eeff021f279800a28f1ada4d766be6dbdd824.tar.bz2
volse-hubzilla-781eeff021f279800a28f1ada4d766be6dbdd824.zip
Update Linkinfo.php
Diffstat (limited to 'Zotlabs/Module/Linkinfo.php')
-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 715cda356..8666976af 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.+; charset=([^"|\']+)/i', $body, $o) ? $o[1] : 'UTF-8'));
+ $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, 'HTML-ENTITIES', "UTF-8");
$doc = new \DOMDocument();