Skip to content

Commit

Permalink
EZP-31603: Fixed trusted proxy check (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou authored Apr 29, 2020
1 parent 222dd9b commit 5e87396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/InvalidateTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function tokenAction(Request $request)
{
$response = new Response();

if ($request->isFromTrustedProxy()) {
if (!$request->isFromTrustedProxy()) {
$response->setStatusCode('401', 'Unauthorized');

return $response;
Expand Down

0 comments on commit 5e87396

Please sign in to comment.