Commit f093d3c8 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug1246553: When cleaning the query, replace the special characters...

Merge "Bug1246553: When cleaning the query, replace the special characters with a space. This separates the tokens instead of concatenating them."
parents 1a43b4ed 3c155be5
......@@ -813,8 +813,8 @@ class PluginSearchElasticsearch extends PluginSearch {
':'
);
foreach ($badchars as $bad) {
// delete it!
$query = preg_replace('/\\'.$bad.'/','',$query);
// Replace with a space.
$query = preg_replace('/\\'.$bad.'/',' ',$query);
}
return $query;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment