diff options
-rw-r--r-- | Zotlabs/Module/Linkinfo.php | 7 | ||||
-rw-r--r-- | include/network.php | 4 | ||||
-rw-r--r-- | view/es-es/hstrings.php | 2 | ||||
-rw-r--r-- | view/it/hmessages.po | 6 | ||||
-rw-r--r-- | view/it/hstrings.php | 2 |
5 files changed, 13 insertions, 8 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php index dbed571d4..7c7dc0e88 100644 --- a/Zotlabs/Module/Linkinfo.php +++ b/Zotlabs/Module/Linkinfo.php @@ -228,8 +228,13 @@ class Linkinfo extends \Zotlabs\Web\Controller { $header = $result['header']; $body = $result['body']; + + // Check codepage in HTTP headers or HTML if not exist + $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'); - $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, 'UTF-8', $cp); $body = mb_convert_encoding($body, 'HTML-ENTITIES', "UTF-8"); $doc = new \DOMDocument(); diff --git a/include/network.php b/include/network.php index 4c9813768..f976dcc35 100644 --- a/include/network.php +++ b/include/network.php @@ -711,9 +711,9 @@ function scale_external_images($s, $include_link = true, $scale_replace = false) foreach($matches as $mtch) { logger('data: ' . $mtch[2] . ' ' . $mtch[3]); - if(substr($mtch[1],0,1) == '=') { + if(substr($mtch[2],0,1) == '=') { $owidth = intval(substr($mtch[2],1)); - if(intval($owidth) > 0 && intval($owidth) < 1024) + if($owidth > 0 && $owidth < 1024) continue; } diff --git a/view/es-es/hstrings.php b/view/es-es/hstrings.php index 6daac9592..2024504a1 100644 --- a/view/es-es/hstrings.php +++ b/view/es-es/hstrings.php @@ -5,7 +5,7 @@ function string_plural_select_es_es($n){ return ($n != 1);; }} App::$rtl = 0; -App::$strings["plural_function_code"] = "(n != 1);"; +App::$strings["plural_function_code"] = "(n != 1)"; App::$strings["Can view my channel stream and posts"] = "Pueden verse la actividad y publicaciones de mi canal"; App::$strings["Can send me their channel stream and posts"] = "Se me pueden enviar entradas y contenido de un canal"; App::$strings["Can view my default channel profile"] = "Puede verse mi perfil de canal predeterminado."; diff --git a/view/it/hmessages.po b/view/it/hmessages.po index fc4772846..94911bc20 100644 --- a/view/it/hmessages.po +++ b/view/it/hmessages.po @@ -5849,7 +5849,7 @@ msgstr "Impossibile creare il menù." #: ../../Zotlabs/Module/Menu.php:98 ../../Zotlabs/Module/Menu.php:110 msgid "Menu Name" -msgstr "Nome del menu" +msgstr "Nome del menù" #: ../../Zotlabs/Module/Menu.php:98 msgid "Unique name (not visible on webpage) - required" @@ -6543,7 +6543,7 @@ msgstr "Homepage del progetto" #: ../../Zotlabs/Module/Siteinfo.php:32 msgid "Developer homepage" -msgstr "Homepege dello sviluppatore" +msgstr "Homepage dello sviluppatore" #: ../../Zotlabs/Module/Ratings.php:70 msgid "No ratings" @@ -6623,7 +6623,7 @@ msgstr "Importazione completata." msgid "" "Channel name changes are not allowed within 48 hours of changing the account" " password." -msgstr "Non è possibile cambiare il nome del canale entro le 48 dal cambio della password dell'account." +msgstr "Non è possibile cambiare il nome del canale entro le 48 ore dal cambio della password dell'account." #: ../../Zotlabs/Module/Changeaddr.php:46 ../../include/channel.php:214 #: ../../include/channel.php:599 diff --git a/view/it/hstrings.php b/view/it/hstrings.php index 42fc58347..1f5527946 100644 --- a/view/it/hstrings.php +++ b/view/it/hstrings.php @@ -1393,7 +1393,7 @@ App::$strings["This site is powered by \$Projectname"] = "Questo sito è costrui App::$strings["Federated and decentralised networking and identity services provided by Zot"] = ""; App::$strings["Version %s"] = "Versione %s"; App::$strings["Project homepage"] = "Homepage del progetto"; -App::$strings["Developer homepage"] = "Homepege dello sviluppatore"; +App::$strings["Developer homepage"] = "Homepage dello sviluppatore"; App::$strings["No ratings"] = "Nessuna valutazione"; App::$strings["Ratings"] = "Valutazioni"; App::$strings["Rating: "] = "Valutazione:"; |