removing non-ascii characters at read_socket_raw
This commit is contained in:
parent
97248c3772
commit
6daf74d0be
@ -275,6 +275,9 @@ char *read_socket_raw(int socket, char *key)
|
|||||||
|
|
||||||
encrypt_decrypt_message(&output, key, DECRYPTION); //DECRYPT
|
encrypt_decrypt_message(&output, key, DECRYPTION); //DECRYPT
|
||||||
|
|
||||||
|
//REMOVE NON-ASCII
|
||||||
|
remove_non_ascii(&output);
|
||||||
|
|
||||||
//VALIDATE JSON FORMAT
|
//VALIDATE JSON FORMAT
|
||||||
struct json_object *json = json_tokener_parse(output);
|
struct json_object *json = json_tokener_parse(output);
|
||||||
if (json == NULL)
|
if (json == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user