Skip to content

Commit

Permalink
fix a bug in char escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
cradeck committed Nov 3, 2023
1 parent c4726b8 commit af3729d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/SolrServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ protected function queryComponentsForQueryParameters(array $queryParameters): ar
$chars = explode(',', $fieldInfo['escapechar']);
foreach ($queryTerms as $key => $term) {
foreach ($chars as $char) {
$queryTerms[$key] = str_replace($char, '\\'.$char, $term);
$queryTerms[$key] = str_replace($char, '\\'.$char, $queryTerms[$key]);
}
}
if (!empty($fieldInfo["disjunctionWith"])){
Expand Down

0 comments on commit af3729d

Please sign in to comment.