Skip to content

Commit

Permalink
Fix bug in maintenance middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Jun 29, 2024
1 parent b66b167 commit b32c3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/MaintenanceMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ protected function hasValidBypassCookie(ServerRequestInterface $request, array $
is_int($payload['expire'] ?? null) &&
isset($payload['hash']) &&
hash_equals(hash_hmac('sha256', (string) $payload['expire'], $secret), $payload['hash']) &&
is_int($payload['expire']) >= time();
(int) $payload['expire'] >= time();
}

/**
Expand Down

0 comments on commit b32c3a9

Please sign in to comment.