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 ""; }