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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15699 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-05-25 16:21:03 +00:00
parent c2f8ecf583
commit 21d5cfab87
@@ -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;