Skip to content

Commit

Permalink
Update DataTablesRepositoryTrait.php
Browse files Browse the repository at this point in the history
Escape special characters in regex string
  • Loading branch information
wimme002 authored Mar 6, 2023
1 parent 3f743bc commit ce59cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doctrine/ODM/DataTablesRepositoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function addSearch(Parameters $parameters, Columns $columns, Builder $qb
return;
}

$searchString = $parameters->getSearchString();
$searchString = preg_quote($parameters->getSearchString());

$expression = $qb->expr();

Expand Down

0 comments on commit ce59cdb

Please sign in to comment.