diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-03 10:41:31 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-03 10:41:31 +0100 |
commit | 46b0510b994fb885cd3c64b703ce73c2cee6d6c1 (patch) | |
tree | 0ed028c6d31dfa02fc265e9c90d0a26d782147aa /Zotlabs/Module/Linkinfo.php | |
parent | a7624ea48bb89122ef23d59d977642994feb6ad5 (diff) | |
download | volse-hubzilla-46b0510b994fb885cd3c64b703ce73c2cee6d6c1.tar.gz volse-hubzilla-46b0510b994fb885cd3c64b703ce73c2cee6d6c1.tar.bz2 volse-hubzilla-46b0510b994fb885cd3c64b703ce73c2cee6d6c1.zip |
Update Linkinfo.php
Diffstat (limited to 'Zotlabs/Module/Linkinfo.php')
-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 623b574af..670967370 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 = (preg_match('/Content-Type: text\/html; charset=(.+)/i', $header, $o) ? trim($o[1]) : ''); + $cp = (preg_match('/Content-Type: text\/html; charset=(.+)\r\n/i', $header, $o) ? $o[1] : ''); if(empty($cp)) $cp = (preg_match('/meta.+content=["|\']text\/html; charset=([^"|\']+)/i', $body, $o) ? $o[1] : 'AUTO'); |