summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-02 16:46:51 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-02 16:46:51 -0500
commitab16bb876b895c16f3a7da8eb658e68dc9a9eb24 (patch)
treeaef498307290afc2ffc3fafe8dd554923335c73f /lib/util.php
parentdaa5797809ec9315db463c5ecc721f1273c0d17e (diff)
parentb6f0f72a0992596f68f5aa1d4513e6bd3884a2c0 (diff)
Merge branch 'master' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index d7af3f204..07e124811 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1390,7 +1390,7 @@ function common_negotiate_type($cprefs, $sprefs)
}
$bestq = 0;
- $besttype = "text/html";
+ $besttype = 'text/html';
foreach(array_keys($combine) as $type) {
if($combine[$type] > $bestq) {
@@ -1399,6 +1399,9 @@ function common_negotiate_type($cprefs, $sprefs)
}
}
+ if ('text/html' === $besttype) {
+ return "text/html; charset=utf-8";
+ }
return $besttype;
}