Skip to content

Commit

Permalink
' needs escaping
Browse files Browse the repository at this point in the history
add escaping to strings
  • Loading branch information
Gladhon authored Jun 7, 2019
1 parent 9047cf8 commit eda99ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public function isApplicable(Type $type): bool

public function replace($value): string
{
return sprintf('\'%s\'', $value);
return sprintf('\'%s\'', preg_quote($value, '\''));
}
}

0 comments on commit eda99ec

Please sign in to comment.