From 66344af028df774f4c68df0f94f1fbc0138e28e9 Mon Sep 17 00:00:00 2001 From: Benjamin Trenkle Date: Tue, 29 Oct 2024 11:13:07 +0100 Subject: [PATCH] Remove trailing slashes (#44340) --- libraries/src/Helper/PublicFolderGeneratorHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/src/Helper/PublicFolderGeneratorHelper.php b/libraries/src/Helper/PublicFolderGeneratorHelper.php index 518b11225088f..3eed79b6171d9 100644 --- a/libraries/src/Helper/PublicFolderGeneratorHelper.php +++ b/libraries/src/Helper/PublicFolderGeneratorHelper.php @@ -96,7 +96,7 @@ public function createPublicFolder(string $destinationPath): void { $destinationPath = rtrim($destinationPath, '/\\') . '/'; $fullDestinationPath = $destinationPath; - $definePublic = '\'' . $destinationPath . '\''; + $definePublic = '\'' . rtrim($destinationPath, '/') . '\''; $root = JPATH_ROOT . '/'; $defineRoot = '\'' . JPATH_ROOT . '\'';