Skip to content

Commit

Permalink
fix: HTTP_REFERER is null and not empty when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
malteriechmann committed Mar 21, 2023
1 parent 14a2fbc commit 3614c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Middleware/LanguageRedirectionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
}

// Do nothing, if a HTTP referer is set
if ($request->getServerParams()['HTTP_REFERER'] !== '') {
if (! empty($request->getServerParams()['HTTP_REFERER'])) {
return $handler->handle($request);
}

Expand Down

0 comments on commit 3614c3f

Please sign in to comment.