// 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:
mDeflotte
2012-03-27 16:18:10 +00:00
parent 2c3913b061
commit f7a2973663

View File

@@ -884,7 +884,7 @@ class FrontControllerCore extends Controller
if (!Configuration::get('PS_TOKEN_ENABLE'))
return true;
return strcasecmp(Tools::getToken(false), Tools::getValue('token'));
return (strcasecmp(Tools::getToken(false), Tools::getValue('token')) == 0);
}
/**