// Fix bugs with Tools::isTokenValid()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14310 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -884,7 +884,7 @@ class FrontControllerCore extends Controller
|
|||||||
if (!Configuration::get('PS_TOKEN_ENABLE'))
|
if (!Configuration::get('PS_TOKEN_ENABLE'))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return strcasecmp(Tools::getToken(false), Tools::getValue('token'));
|
return (strcasecmp(Tools::getToken(false), Tools::getValue('token')) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user