From 53d86416035cd88bec50d403eade6fdb288e6071 Mon Sep 17 00:00:00 2001 From: Ganesh Kandu Date: Thu, 24 Feb 2022 21:33:50 +0530 Subject: [PATCH] Don't strip quotation marks at the end of normal chat messages after encoding. Don't strip quotation marks at the end of normal chat messages after encoding. #13 --- box/core/kchat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box/core/kchat.php b/box/core/kchat.php index e187eee..4db7fbb 100644 --- a/box/core/kchat.php +++ b/box/core/kchat.php @@ -180,7 +180,7 @@ function reverse($a){ function msgencode($txt){ - return trim(json_encode($txt),'"'); + return substr(json_encode($txt), 1, -1); } function msgdecode($txt){