diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-02-02 21:08:33 +0000 |
---|---|---|
committer | Robin Millette <millette@plantard.controlezvous.ca> | 2009-02-02 21:08:33 +0000 |
commit | b6f0f72a0992596f68f5aa1d4513e6bd3884a2c0 (patch) | |
tree | b532acffd7dae18ba712ef8aca0497d1d7eabfd0 /lib/util.php | |
parent | 3f0eb901283e266384f78e8cf1dbd7912bd2f254 (diff) |
trac #569 and trac #711 add missing utf-8 headers and removed extraneous argument in startHTML calls
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 3690f0ad5..3314cdfa0 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1391,7 +1391,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) { @@ -1400,6 +1400,9 @@ function common_negotiate_type($cprefs, $sprefs) } } + if ('text/html' === $besttype) { + return "text/html; charset=utf-8"; + } return $besttype; } |