// Improve performance and bug fixes
This commit is contained in:
@@ -418,7 +418,7 @@ class AdminControllerCore extends Controller
|
||||
if ($field = $this->filterToField($key, $filter))
|
||||
{
|
||||
$type = (array_key_exists('filter_type', $field) ? $field['filter_type'] : (array_key_exists('type', $field) ? $field['type'] : false)); if (($type == 'date' || $type == 'datetime') && is_string($value))
|
||||
$value = unserialize($value);
|
||||
$value = Tools::unSerialize($value);
|
||||
$key = isset($tmp_tab[1]) ? $tmp_tab[0].'.`'.$tmp_tab[1].'`' : '`'.$tmp_tab[0].'`';
|
||||
|
||||
// Assignement by reference
|
||||
|
||||
@@ -260,7 +260,9 @@ class FrontControllerCore extends Controller
|
||||
/* get page name to display it in body id */
|
||||
|
||||
// Are we in a payment module
|
||||
$module_name = Tools::getValue('module');
|
||||
$module_name = '';
|
||||
if (Validate::isModuleName(Tools::getValue('module')))
|
||||
$module_name = Tools::getValue('module');
|
||||
if (!empty($this->page_name))
|
||||
$page_name = $this->page_name;
|
||||
elseif (!empty($this->php_self))
|
||||
@@ -601,7 +603,7 @@ class FrontControllerCore extends Controller
|
||||
$params = array();
|
||||
$excluded_key = array('isolang', 'id_lang', 'controller', 'fc');
|
||||
foreach ($_GET as $key => $value)
|
||||
if (!in_array($key, $excluded_key))
|
||||
if (!in_array($key, $excluded_key) && Validate::isUrl($key) && Validate::isUrl($value))
|
||||
$params[$key] = $value;
|
||||
|
||||
$str_params = '';
|
||||
|
||||
Reference in New Issue
Block a user