1
0
Fork 0

Do not realpath ./.., refs #2932

pull/3034/head
Jordi Boggiano 2014-06-01 15:38:46 +02:00
parent 56c5af8dc4
commit 9b580bd800
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}
/**