[-] BO : Delete backslashes quotes on the BackOffice search

This commit is contained in:
rGaillard committed 2012-05-25 16:21:03 +00:00
1 parent 99123af019
commit 9e8dbc60df
1 file changed
+2
@@ -154,6 +154,7 @@ class AdminSearchControllerCore extends AdminController
} }
foreach (AdminTab::$tabParenting as $key => $value) foreach (AdminTab::$tabParenting as $key => $value)
{ {
$value = stripslashes($value);
$tabs[strtolower($key)] = $tabs[strtolower($value)]; $tabs[strtolower($key)] = $tabs[strtolower($value)];
$key_match[strtolower($key)] = $key; $key_match[strtolower($key)] = $key;
} }
@@ -162,6 +163,7 @@ class AdminSearchControllerCore extends AdminController
{ {
if (stripos($value, $this->query) !== false) if (stripos($value, $this->query) !== false)
{ {
$value = stripslashes($value);
$key = strtolower(substr($key, 0, -32)); $key = strtolower(substr($key, 0, -32));
if (in_array($key, array('AdminTab', 'index'))) if (in_array($key, array('AdminTab', 'index')))
continue; continue;