X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FParseUrl.php;h=4611cf8efe5f25378caa699044543af6269bab4c;hb=fe442683efb8b75394d7df041716c47c81b05fbc;hp=d0b168278563e24be39d6a79c01939846e7e1d98;hpb=d54cf9cc210188639a0ea6490650a7654f2ccee7;p=friendica.git
diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php
index d0b1682785..4611cf8efe 100644
--- a/src/Util/ParseUrl.php
+++ b/src/Util/ParseUrl.php
@@ -214,7 +214,7 @@ class ParseUrl
];
if ($count > 10) {
- Logger::notice('Endless loop detected', ['url' => $url]);
+ Logger::warning('Endless loop detected', ['url' => $url]);
return $siteinfo;
}
@@ -287,22 +287,22 @@ class ParseUrl
// Expected form: Content-Type: text/html; charset=ISO-8859-4
if (preg_match('/charset=([a-z0-9-_.\/]+)/i', $curlResult->getContentType(), $matches)) {
$charset = trim(trim(trim(array_pop($matches)), ';,'));
+ } else {
+ // Then in body that gets precedence
+ // Expected forms:
+ // -
+ // -
+ // -
+ // -
+ // We escape