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, ]; } }