diff --git a/code/Search/SearchForm.php b/code/Search/SearchForm.php index cbe170f1b4..133a8668c1 100644 --- a/code/Search/SearchForm.php +++ b/code/Search/SearchForm.php @@ -146,7 +146,7 @@ public function getResults() } } - $keywords = $request->requestVar('Search'); + $keywords = rtrim($request->requestVar('Search'), '- '); $andProcessor = function ($matches) { return ' +' . $matches[2] . ' +' . $matches[4] . ' ';