Skip to content

Commit

Permalink
Merge pull request #1239 from NatLibFi/issue1184-decomposed-characters
Browse files Browse the repository at this point in the history
Normalize the search term
  • Loading branch information
joelit committed Nov 11, 2021
2 parents a194e98 + 5bfe646 commit 15b1674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/ConceptSearchParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function getSearchTerm()
if (!$term && $this->rest)
$term = $this->request->getQueryParamRaw('label');
$term = trim($term); // surrounding whitespace is not considered significant
$term = Normalizer::normalize( $term, Normalizer::FORM_C ); //Normalize decomposed unicode characters #1184
if ($this->rest) {
return $term;
}
Expand Down

0 comments on commit 15b1674

Please sign in to comment.