CC-5121: fix some SQL statements not being escaped/prepared
This commit is contained in:
parent
21df9013ee
commit
40eb51b892
7 changed files with 87 additions and 65 deletions
|
@ -6,7 +6,7 @@ class Application_Model_Locale
|
|||
{
|
||||
$con = Propel::getConnection();
|
||||
$sql = "SELECT * FROM cc_locale";
|
||||
$res = $con->query($sql)->fetchAll();
|
||||
$res = Application_Common_Database::prepareAndExecute($sql);
|
||||
$out = array();
|
||||
foreach ($res as $r) {
|
||||
$out[$r["locale_code"]] = $r["locale_lang"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue