diff --git a/kchat/lib/global.php b/kchat/lib/global.php index c557dd7..e24d1eb 100644 --- a/kchat/lib/global.php +++ b/kchat/lib/global.php @@ -213,7 +213,7 @@ function reverse($a){ } function msgencode($data,$txt){ - return trim(json_encode($txt),'"'); + return substr(json_encode($txt), 1, -1); } function msgdecode($data,$txt){