From: Brion Vibber Date: Mon, 29 Mar 2010 23:27:50 +0000 (-0700) Subject: Include meta charset header in saved HTML file for long OStatus messages; without... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=990bbea07e28abb5074f99217b2ddde6b8e5aa22;p=quix0rs-gnu-social.git Include meta charset header in saved HTML file for long OStatus messages; without, DOMDocument::loadHTML assumed Latin-1 instead of UTF-8. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 34bff548db..8ba2ce0c31 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -1685,7 +1685,11 @@ class Ostatus_profile extends Memcached_DataObject */ function saveHTMLFile($title, $rendered) { - $final = sprintf("\n%s". + $final = sprintf("\n" . + '' . + '' . + '%s' . + '' . '%s', htmlspecialchars($title), $rendered);