Skip to content

Commit

Permalink
Trim path before slash append
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner authored Jun 18, 2019
1 parent d4ba523 commit daf3d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Autoloader/FileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function locateFile(string $file, string $folder = null, string $ext = 'p
$path .= $folder;
}

$path .= '/' . $filename;
$path = rtrim($path, '/') . '/' . $filename;
if (is_file($path))
{
return $path;
Expand Down

0 comments on commit daf3d58

Please sign in to comment.