removing non-ascii characters at read_socket_raw

This commit is contained in:
Václav Šmejkal 2025-02-03 20:33:23 +01:00
parent 97248c3772
commit 6daf74d0be
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -275,6 +275,9 @@ char *read_socket_raw(int socket, char *key)
encrypt_decrypt_message(&output, key, DECRYPTION); //DECRYPT
//REMOVE NON-ASCII
remove_non_ascii(&output);
//VALIDATE JSON FORMAT
struct json_object *json = json_tokener_parse(output);
if (json == NULL)