Skip to content

Instantly share code, notes, and snippets.

@nautilebleu
Created September 6, 2011 15:13
Show Gist options
  • Save nautilebleu/1197819 to your computer and use it in GitHub Desktop.
Save nautilebleu/1197819 to your computer and use it in GitHub Desktop.
Prévention des injections SQL dans Prestashop 1.1
<?php
// classes/Db.php
abstract class Db
{
//[…]
private static $_blacklist = 'LOAD_FILE|UNION|OUTFILE|DUMPFILE|ESCAPED|TERMINATED|CASCADE|INFILE|X509|TRIGGER|REVOKE';
//[…]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment