med-material / LoggingManager

LoggingManager Package for Unity. Saves to CSV and to MySQL Databases.
MIT License
3 stars 3 forks source link

ConnectToMySQL: Escape commas and semi-colons #3

Closed bastianilso closed 4 years ago

bastianilso commented 4 years ago

Until now the ConnectToMySQL package have not really checked what data is being sent. As a result, it was possible to break the connection to the database if data contained commas or semi-colons.

To prevent this, replace commas with dots (.) and semi-colons with dashes (-).

bastianilso commented 4 years ago

@QuentinDaveau good point, I have added handling for this now. If all looks good to you, I'll merge the request.