]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/restoreuser.php
Always specify UTF-8 targt charset for html_entity_decode(); default is 8-bit ISO...
[quix0rs-gnu-social.git] / scripts / restoreuser.php
index de3816dd535b96fc63fe3b748f7295f3810dee2c..82eb9bbaa17ad01aae418458bbf66c23e6e278c8 100644 (file)
@@ -213,7 +213,7 @@ function postNote($user, $activity)
     // Get (safe!) HTML and text versions of the content
 
     $rendered = purify($sourceContent);
-    $content = html_entity_decode(strip_tags($rendered));
+    $content = html_entity_decode(strip_tags($rendered), ENT_QUOTES, 'UTF-8');
 
     $shortened = common_shorten_links($content);