Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/ContentRepository.php
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@ public function searchNaive(string $searchTerm, int $page, int $amountPerPage, C

// The search term must match the format of the content in the database
// Therefore, it is JSON encoded and escaped with backslashes
$encodedSearchTerm = addslashes(trim(json_encode($searchTerm), '"'));
$encodedSearchTerm = addslashes(trim(json_encode($searchTerm, JSON_UNESCAPED_UNICODE), '"'));

$qb->addSelect('f')
->innerJoin('content.fields', 'f')

0 comments on commit dfa5e9e

Please sign in to comment.