Skip to content

Commit daf3d58

Browse files
authored
Trim path before slash append
1 parent d4ba523 commit daf3d58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Autoloader/FileLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function locateFile(string $file, string $folder = null, string $ext = 'p
144144
$path .= $folder;
145145
}
146146

147-
$path .= '/' . $filename;
147+
$path = rtrim($path, '/') . '/' . $filename;
148148
if (is_file($path))
149149
{
150150
return $path;

0 commit comments

Comments
 (0)