Skip to content

Commit 00f2677

Browse files
authored
Don't strip quotation marks at the end of normal chat messages after encoding.
1 parent 7bbf41e commit 00f2677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kchat/lib/global.php

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

215215
function msgencode($data,$txt){
216-
return trim(json_encode($txt),'"');
216+
return substr(json_encode($txt), 1, -1);
217217
}
218218

219219
function msgdecode($data,$txt){

0 commit comments

Comments
 (0)