From 6f378e0280accd913df6c80cb5b51446fbf3e01e Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Mon, 30 Jun 2008 21:10:57 +0000 Subject: [PATCH] Content-type sanification --- web/briskin5/index_rd.php | 2 ++ web/index_rd.php | 11 ++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index b6662f6..177eff9 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -299,6 +299,8 @@ $is_page_streaming = ((stristr($HTTP_USER_AGENT, "linux") && header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past +// header('Content-type: application/xml; charset="utf-8"',true); +header('Content-type: text/plain; charset="utf-8"',true); if (!isset($myfrom)) $myfrom = ""; diff --git a/web/index_rd.php b/web/index_rd.php index ea422ef..2795a17 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -259,15 +259,6 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su log_auth($user->sess, "Explicit logout."); $user->reset(); - /* factorized with ->reset() - $tmp_sess = $user->sess; - $user->sess = ""; - step_unproxy($tmp_sess); - $user->name = ""; - while (array_pop($user->comm) != NULL); - $user->step = 0; - $user->the_end = FALSE; - */ if ($user->subst == 'sitdown') { log_load("ROOM WAKEUP"); @@ -307,6 +298,8 @@ $is_page_streaming = ((stristr($HTTP_USER_AGENT, "linux") && header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past +// header('Content-type: application/xml; charset="utf-8"',true); +header('Content-type: text/plain; charset="utf-8"',true); if (!isset($myfrom)) $myfrom = ""; -- 2.17.1