diff options
| author | Frédéric Guillot <fred@kanboard.net> | 2014-10-19 14:45:34 -0400 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-19 14:45:34 -0400 |
| commit | c1c4d8380e6e1a2fb5eeed2e3051f2507a68614e (patch) | |
| tree | 50c8e4147856afa6cd30a081564cbe1220808e55 /vendor/PicoDb/Database.php | |
| parent | 4da627d1beff2a7a775f1075237ea5721b478e39 (diff) | |
Update PicoDb
Diffstat (limited to 'vendor/PicoDb/Database.php')
| -rw-r--r-- | vendor/PicoDb/Database.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/PicoDb/Database.php b/vendor/PicoDb/Database.php index 5d0beb8a..c09d8a92 100644 --- a/vendor/PicoDb/Database.php +++ b/vendor/PicoDb/Database.php @@ -86,6 +86,11 @@ class Database public function escapeIdentifier($value) { + // Do not escape custom query + if (strpos($value, '.') !== false || strpos($value, ' ') !== false) { + return $value; + } + return $this->pdo->escapeIdentifier($value); } |
