Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
@@ -850,7 +850,7 @@ class FrontControllerCore extends Controller
|
||||
if (!is_numeric(Tools::getValue('p', 1)) || Tools::getValue('p', 1) < 0)
|
||||
Tools::redirect(self::$link->getPaginationLink(false, false, $this->n, false, 1, false));
|
||||
|
||||
$current_url = tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']);
|
||||
$current_url = Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']);
|
||||
//delete parameter page
|
||||
$current_url = preg_replace('/(\?)?(&)?p=\d+/', '$1', $current_url);
|
||||
|
||||
@@ -919,7 +919,7 @@ class FrontControllerCore extends Controller
|
||||
$ips = array_map('trim', $ips);
|
||||
if (is_array($ips) && count($ips))
|
||||
foreach ($ips as $ip)
|
||||
if (!empty($ip) && strpos($user_ip, $ip) === 0)
|
||||
if (!empty($ip) && preg_match('/^'.$ip.'.*/', $user_ip))
|
||||
$allowed = true;
|
||||
return $allowed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user