Skip to content

Commit 53d8641

Browse files
committed
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
1 parent b0793c4 commit 53d8641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

box/core/kchat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function reverse($a){
180180

181181

182182
function msgencode($txt){
183-
return trim(json_encode($txt),'"');
183+
return substr(json_encode($txt), 1, -1);
184184
}
185185

186186
function msgdecode($txt){

0 commit comments

Comments
 (0)