From e5d23484ed41da5faa0f57742a6152e8f629a365 Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Tue, 15 Oct 2019 22:51:45 -0500 Subject: [PATCH] Correct cleaning of namespaces in FileLocater for better Windows compatibility. See #2203 --- system/Autoloader/FileLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Autoloader/FileLocator.php b/system/Autoloader/FileLocator.php index 0bacd15d3718..80b1a71ddd89 100644 --- a/system/Autoloader/FileLocator.php +++ b/system/Autoloader/FileLocator.php @@ -292,7 +292,7 @@ protected function getNamespaces() { $namespaces[] = [ 'prefix' => $prefix, - 'path' => rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR, + 'path' => rtrim($path, '\\/') . DIRECTORY_SEPARATOR, ]; } }