@@ -7,4 +7,4 @@ |
||
| 7 | 7 | * Csrf token timeout exception |
| 8 | 8 | * @autho: Julfiker <[email protected]> |
| 9 | 9 | */ |
| 10 | -class CsrfTimeOutException extends Exception {protected $massage = "Token already expired! please try again.";} |
|
| 10 | +class CsrfTimeOutException extends Exception {protected $massage = "Token already expired! please try again."; } |
|
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | public function checkToken() { |
| 73 | 73 | $pass = false; |
| 74 | 74 | $method = $this->request->getRealMethod(); |
| 75 | - if (in_array($method, ['PUT','POST','DELETE'])) { |
|
| 75 | + if (in_array($method, [ 'PUT', 'POST', 'DELETE' ])) { |
|
| 76 | 76 | $csrfToken = $this->getRequest()->get($this->getTokenFieldName()); |
| 77 | 77 | if ($csrfToken && $this->getStorageToken() == $csrfToken) { |
| 78 | 78 | $pass = true; |