mirror of
https://github.com/dg/dibi.git
synced 2025-08-14 01:54:08 +02:00
quoted identifiers security fix
This commit is contained in:
@@ -247,6 +247,7 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver
|
||||
return "'" . mysqli_real_escape_string($this->connection, $value) . "'";
|
||||
|
||||
case dibi::IDENTIFIER:
|
||||
$value = str_replace('`', '``', $value);
|
||||
return '`' . str_replace('.', '`.`', $value) . '`';
|
||||
|
||||
case dibi::FIELD_BOOL:
|
||||
|
Reference in New Issue
Block a user