]> git.mxchange.org Git - friendica-addons.git/commitdiff
membersince: fix utf-8 encoding issues
authorrabuzarus <rabuzarus@t-online.de>
Wed, 7 Feb 2018 16:01:27 +0000 (17:01 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Wed, 7 Feb 2018 16:01:27 +0000 (17:01 +0100)
membersince/membersince.php

index 8c42c1359b1e036c70c0a740f41b8706c51854a9..01de8fd428e9f79ddc10ea60fc5a5298cbe37a1a 100644 (file)
@@ -26,7 +26,7 @@ function membersince_display(&$a, &$b)
        if (current_theme() == 'frio') {
                // Works in Frio.
                $doc = new DOMDocument();
-               $doc->loadHTML($b);
+               $doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8'));
 
                $elm = $doc->getElementById('aprofile-fullname');