From 44337317d7b40e27d367c3c0293178f256754a39 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Wed, 7 May 2008 21:47:09 +0000 Subject: [PATCH] fixes for some specific environments git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@67 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/webim/client.php | 2 +- src/webim/libs/common.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webim/client.php b/src/webim/client.php index bf994788..35f59615 100644 --- a/src/webim/client.php +++ b/src/webim/client.php @@ -43,7 +43,7 @@ if( !isset($_GET['token']) || !isset($_GET['thread']) ) { $threadid = $thread['threadid']; $token = $thread['ltoken']; $level = get_remote_level($_SERVER['HTTP_USER_AGENT']); - header("Location: ".dirname($_SERVER['PHP_SELF'])."/client.php?thread=$threadid&token=$token&level=$level"); + header("Location: $webimroot/client.php?thread=$threadid&token=$token&level=$level"); exit; } diff --git a/src/webim/libs/common.php b/src/webim/libs/common.php index 668663a8..91e596b2 100644 --- a/src/webim/libs/common.php +++ b/src/webim/libs/common.php @@ -260,7 +260,7 @@ function select_multi_assoc($query,$link) { function start_xml_output() { header("Cache-Control: no-store, no-cache, must-revalidate"); - header("Content-type: text/xml"); + header("Content-type: text/xml; charset=utf-8"); echo ""; }