|
|
@@ -230,7 +230,7 @@ class SecurityComponent extends Component {
|
|
|
$controller->request->params['requested'] != 1
|
|
|
);
|
|
|
|
|
|
- if ($this->_action == $this->blackHoleCallback) {
|
|
|
+ if ($this->_action === $this->blackHoleCallback) {
|
|
|
return $this->blackHole($controller, 'auth');
|
|
|
}
|
|
|
|
|
|
@@ -362,7 +362,7 @@ class SecurityComponent extends Component {
|
|
|
$property = 'require' . $method;
|
|
|
if (is_array($this->$property) && !empty($this->$property)) {
|
|
|
$require = $this->$property;
|
|
|
- if (in_array($this->_action, $require) || $this->$property == array('*')) {
|
|
|
+ if (in_array($this->_action, $require) || $this->$property === array('*')) {
|
|
|
if (!$this->request->is($method)) {
|
|
|
if (!$this->blackHole($controller, $method)) {
|
|
|
return null;
|
|
|
@@ -384,7 +384,7 @@ class SecurityComponent extends Component {
|
|
|
if (is_array($this->requireSecure) && !empty($this->requireSecure)) {
|
|
|
$requireSecure = $this->requireSecure;
|
|
|
|
|
|
- if (in_array($this->_action, $requireSecure) || $this->requireSecure == array('*')) {
|
|
|
+ if (in_array($this->_action, $requireSecure) || $this->requireSecure === array('*')) {
|
|
|
if (!$this->request->is('ssl')) {
|
|
|
if (!$this->blackHole($controller, 'secure')) {
|
|
|
return null;
|
|
|
@@ -405,7 +405,7 @@ class SecurityComponent extends Component {
|
|
|
if (is_array($this->requireAuth) && !empty($this->requireAuth) && !empty($this->request->data)) {
|
|
|
$requireAuth = $this->requireAuth;
|
|
|
|
|
|
- if (in_array($this->request->params['action'], $requireAuth) || $this->requireAuth == array('*')) {
|
|
|
+ if (in_array($this->request->params['action'], $requireAuth) || $this->requireAuth === array('*')) {
|
|
|
if (!isset($controller->request->data['_Token'])) {
|
|
|
if (!$this->blackHole($controller, 'auth')) {
|
|
|
return null;
|