@@ -62,12 +62,12 @@ |
||
62 | 62 | |
63 | 63 | protected function authorizePostRequest(): void |
64 | 64 | { |
65 | - if (! $this->isRequestMadeFromLocalhost()) { |
|
65 | + if (!$this->isRequestMadeFromLocalhost()) { |
|
66 | 66 | throw new HttpException(403, "Refusing to serve request from address {$_SERVER['REMOTE_ADDR']} (must be on localhost)"); |
67 | 67 | } |
68 | 68 | |
69 | 69 | if ($this->withSession) { |
70 | - if (! $this->validateCSRFToken($this->request->get('_token'))) { |
|
70 | + if (!$this->validateCSRFToken($this->request->get('_token'))) { |
|
71 | 71 | throw new HttpException(403, 'Invalid CSRF token'); |
72 | 72 | } |
73 | 73 | } |