projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf468e2
)
Include meta charset header in saved HTML file for long OStatus messages; without...
author
Brion Vibber
<brion@pobox.com>
Mon, 29 Mar 2010 23:27:50 +0000
(16:27 -0700)
committer
Brion Vibber
<brion@pobox.com>
Mon, 29 Mar 2010 23:29:57 +0000
(16:29 -0700)
plugins/OStatus/classes/Ostatus_profile.php
patch
|
blob
|
history
diff --git
a/plugins/OStatus/classes/Ostatus_profile.php
b/plugins/OStatus/classes/Ostatus_profile.php
index 34bff548dbf15d769a8133c84a05cb4055a91229..8ba2ce0c313fffe4f30d9b8a3c32160bdba1c4df 100644
(file)
--- 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("<!DOCTYPE html>\n<html><head><title>%s</title></head>".
+ $final = sprintf("<!DOCTYPE html>\n" .
+ '<html><head>' .
+ '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' .
+ '<title>%s</title>' .
+ '</head>' .
'<body>%s</body></html>',
htmlspecialchars($title),
$rendered);