From 3d70f14176422d4d8ee400b6acae4e21f7c25ca2 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 22 Oct 2024 12:26:52 +0200 Subject: [PATCH] Minor fixes around parse_url() checks --- Controller/RedirectController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/RedirectController.php b/Controller/RedirectController.php index 3d8efe0de..bad12b89f 100644 --- a/Controller/RedirectController.php +++ b/Controller/RedirectController.php @@ -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); }