TauferLab / ExSciTecH

ExSciTecH is a set of educational tools used to promote the science used in the volunteer project Docking@Home.
0 stars 0 forks source link

[Security] Switch to using MySQL prepared statements. #15

Open CMahaff opened 10 years ago

CMahaff commented 10 years ago

MySQL Prepared statements are a better defense against SQL injection. Escaping the string does not stop all bad characters from getting through, as noted in the comments here:

http://php.net/manual/en/mysqli.real-escape-string.php

SQL prepared statements explanation:

http://php.net/manual/en/mysqli.quickstart.prepared-statements.php