Skip to content

Commit

Permalink
Minor fixes around parse_url() checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Oct 22, 2024
1 parent 48aba9b commit 3d70f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/RedirectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function redirectAction(Request $request, string $route, bool $permanent
*/
public function urlRedirectAction(Request $request, string $path, bool $permanent = false, ?string $scheme = null, ?int $httpPort = null, ?int $httpsPort = null, bool $keepRequestMethod = false): Response
{
if ('' == $path) {
if ('' === $path) {
throw new HttpException($permanent ? 410 : 404);
}

Expand Down

0 comments on commit 3d70f14

Please sign in to comment.