Skip to content

Commit f4cab47

Browse files
authored
Merge pull request #85 from Gladhon/patch-1
' needs escaping
2 parents 9047cf8 + eda99ec commit f4cab47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder/Visitor/Parameters/StringReplacingStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ public function isApplicable(Type $type): bool
1111

1212
public function replace($value): string
1313
{
14-
return sprintf('\'%s\'', $value);
14+
return sprintf('\'%s\'', preg_quote($value, '\''));
1515
}
1616
}

0 commit comments

Comments
 (0)