Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3130'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ClassMapAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ public static function realPharPath($path)
}

$parts = explode('/', str_replace(array('/','\\'), '/', substr($path, 8)));
$parts = array_values(array_filter($parts, function($p) { return ($p !== '' && $p !== '.'); }));
$parts = array_values(array_filter($parts, function ($p) {
return ($p !== '' && $p !== '.');
}));

array_walk($parts, function ($value, $key) use(&$parts) {
if ($value === '..') {
Expand Down

0 comments on commit 01191de

Please sign in to comment.