Commit 3c155be5 authored by Ghada El-Zoghbi's avatar Ghada El-Zoghbi
Browse files

Bug1246553: When cleaning the query, replace the special characters with a...


Bug1246553: When cleaning the query, replace the special characters with a space. This separates the tokens instead of concatenating them.

Change-Id: I4f367498efec95cecc9f90cee30d7aad5185c956
Signed-off-by: default avatarGhada El-Zoghbi <ghada@catalyst-au.net>
parent a08539da
...@@ -812,8 +812,8 @@ class PluginSearchElasticsearch extends PluginSearch { ...@@ -812,8 +812,8 @@ class PluginSearchElasticsearch extends PluginSearch {
':' ':'
); );
foreach ($badchars as $bad) { foreach ($badchars as $bad) {
// delete it! // Replace with a space.
$query = preg_replace('/\\'.$bad.'/','',$query); $query = preg_replace('/\\'.$bad.'/',' ',$query);
} }
return $query; return $query;
} }
......
Supports Markdown
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