Skip to content

Commit

Permalink
Escape dubleQuotes on plain ::LIKE usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Jan 9, 2019
1 parent 3575bfd commit a8ca57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Query/Common/CriterionVisitor/Field/FieldLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function visit(Criterion $criterion, CriterionVisitor $subVisitor = null)
if (strpos($preparedValue, '*') !== false) {
$queries[] = $name . ':' . $this->escapeExpressions($preparedValue, true);
} else {
$queries[] = $name . ':"' . $this->escapeQuote($preparedValue) . '"';
$queries[] = $name . ':"' . $this->escapeQuote($preparedValue, true) . '"';
}
}

Expand Down

0 comments on commit a8ca57f

Please sign in to comment.