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 Feb 1, 2019
1 parent e648a6f commit a0ce1db
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 a0ce1db

Please sign in to comment.