Skip to content

Commit

Permalink
remove support utf8mb4 unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
Anisan committed Jul 12, 2023
1 parent fe27330 commit 4660fb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/telegram/telegram.class.php
Expand Up @@ -1880,12 +1880,12 @@ function saveData($data, $direction){
$rec["MESSAGE"] = 'Error: '.$data['curl_error_code'].' - '.$data['curl_error'];
}

$rec["RAW"] = json_encode($data,JSON_UNESCAPED_UNICODE);
$rec["RAW"] = json_encode($data);
try{
SQLInsert("tlg_history", $rec);
}
catch(Exception $e) {
registerError('telegram', sprintf('Exception in "%s" method: %s' . $e->getMessage(), json_encode($rec,JSON_UNESCAPED_UNICODE)));
registerError('telegram', sprintf('Exception in "%s" method: %s' . $e->getMessage(), json_encode($rec)));
}
}

Expand Down Expand Up @@ -2053,8 +2053,8 @@ function dbInstall($data) {
tlg_history: CREATED datetime
tlg_history: DIRECTION int(3) unsigned NOT NULL DEFAULT '1'
tlg_history: TYPE int(3) unsigned NOT NULL DEFAULT '1'
tlg_history: MESSAGE text COLLATE 'utf8mb4_unicode_ci'
tlg_history: RAW text COLLATE 'utf8mb4_unicode_ci'
tlg_history: MESSAGE text
tlg_history: RAW text COLLATE
EOD;
parent::dbInstall($data);
Expand Down

0 comments on commit 4660fb7

Please sign in to comment.