Skip to content

Commit b0793c4

Browse files
authored
Merge pull request #13 from McModknower/master
Don't strip quotation marks at the end of normal chat messages after encoding.
2 parents 7bbf41e + 00f2677 commit b0793c4

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)