diff --git a/module/VuFind/src/VuFind/Search/Base/Params.php b/module/VuFind/src/VuFind/Search/Base/Params.php index 1305d40d4eb045bfeab0c70b2ab3123221576f21..41f82afff902b29dc4adcbda5ee1fbfb9a8975d2 100644 --- a/module/VuFind/src/VuFind/Search/Base/Params.php +++ b/module/VuFind/src/VuFind/Search/Base/Params.php @@ -1293,7 +1293,7 @@ class Params implements ServiceLocatorAwareInterface if (isset($this->searchTerms[0]['group'])) { foreach ($this->searchTerms as $group) { foreach ($group['group'] as $search) { - if (preg_match("/\b$needle\b/", $search['lookfor'])) { + if (preg_match("/\b$needle\b/u", $search['lookfor'])) { return true; } } @@ -1301,7 +1301,7 @@ class Params implements ServiceLocatorAwareInterface } else { // Basic search foreach ($this->searchTerms as $haystack) { - if (preg_match("/\b$needle\b/", $haystack['lookfor'])) { + if (preg_match("/\b$needle\b/u", $haystack['lookfor'])) { return true; } }