mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
force utf-8 charset in rpc and html response because of dumb browsers like Safari
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
require_once "modules/backend-rpc.php";
|
require_once "modules/backend-rpc.php";
|
||||||
|
|
||||||
header("Cache-Control: no-cache, must-revalidate");
|
header("Cache-Control: no-cache, must-revalidate");
|
||||||
|
header("Cache-Control: no-cache, must-revalidate");
|
||||||
|
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
header("Expires: -1");
|
header("Expires: -1");
|
||||||
|
|
||||||
@@ -29,7 +31,9 @@
|
|||||||
|
|
||||||
if ((!$op || $op == "rpc" || $op == "rss" || $op == "digestSend" ||
|
if ((!$op || $op == "rpc" || $op == "rss" || $op == "digestSend" ||
|
||||||
$op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
|
$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) {
|
if (!$op) {
|
||||||
|
|||||||
Reference in New Issue
Block a user