summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-01-01 12:50:36 +0100
committerAndrew Dolgov <[email protected]>2007-01-01 12:50:36 +0100
commit6002818ba65f9a913164c8f89c1040a8d21d08fd (patch)
tree94a20b6aadcaa7295480b6f1fa3cf7c88657790f /backend.php
parent8a3fdba55de2d35f42b22d9784d0eefcbd0dfa68 (diff)
force utf-8 charset in rpc and html response because of dumb browsers like Safari
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index af0621987..01cfe0a53 100644
--- a/backend.php
+++ b/backend.php
@@ -3,6 +3,8 @@
require_once "modules/backend-rpc.php";
header("Cache-Control: no-cache, must-revalidate");
+ header("Cache-Control: no-cache, must-revalidate");
+
header("Pragma: no-cache");
header("Expires: -1");
@@ -29,7 +31,9 @@
if ((!$op || $op == "rpc" || $op == "rss" || $op == "digestSend" ||
$op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
- header("Content-Type: application/xml");
+ header("Content-Type: application/xml; charset=utf-8");
+ } else {
+ header("Content-Type: text/html; charset=utf-8");
}
if (!$op) {