mirror of
https://github.com/dg/dibi.git
synced 2025-10-21 01:36:26 +02:00
quoted identifiers security fix
This commit is contained in:
@@ -263,6 +263,8 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
|
||||
return "'" . mysql_real_escape_string($value, $this->connection) . "'";
|
||||
|
||||
case dibi::IDENTIFIER:
|
||||
// @see http://dev.mysql.com/doc/refman/5.0/en/identifiers.html
|
||||
$value = str_replace('`', '``', $value);
|
||||
return '`' . str_replace('.', '`.`', $value) . '`';
|
||||
|
||||
case dibi::FIELD_BOOL:
|
||||
|
Reference in New Issue
Block a user