Skip to content

Commit

Permalink
Don't strip quotation marks at the end of normal chat messages after …
Browse files Browse the repository at this point in the history
…encoding.

Don't strip quotation marks at the end of normal chat messages after encoding.
#13
  • Loading branch information
GaneshKandu committed Feb 24, 2022
1 parent b0793c4 commit 53d8641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion box/core/kchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 53d8641

Please sign in to comment.