Skip to content

Commit

Permalink
Escape column identifier in DibiFluentDataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Oct 10, 2016
1 parent 2eb559a commit a8520da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DataSource/DibiFluentDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public function applyFilterText(Filter\FilterText $filter)
$or = [];

foreach ($condition as $column => $value) {
$column = $this->data_source->getConnection()->getDriver()->escape($column, \dibi::IDENTIFIER);
if($filter->isExactSearch()){
$this->data_source->where("$column = %s", $value);
continue;
Expand Down

0 comments on commit a8520da

Please sign in to comment.