Do not realpath ./.., refs #2932
parent
56c5af8dc4
commit
9b580bd800
|
@ -55,7 +55,13 @@ class Filesystem
|
|||
return array();
|
||||
}
|
||||
|
||||
return array_map('realpath', $matches);
|
||||
return array_map(function ($path) {
|
||||
if (basename($path) === '.' || basename($path) === '..') {
|
||||
return $path;
|
||||
}
|
||||
|
||||
return realpath($path);
|
||||
}, $matches);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue