1
0
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:
David Grudl
2008-09-15 23:58:03 +00:00
parent 8c4211d5be
commit 9b84459f09
7 changed files with 13 additions and 2 deletions

View File

@@ -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: