Skip to content

Commit 628faf1

Browse files
author
Tom Boutell
committed
Merge pull request punkave#66 from vsychov/master
Using basename() is not locale safe
2 parents e4ffe37 + 847487e commit 628faf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/FileManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getFiles($options = array())
3232
if (!is_array($dirs)) {
3333
$dirs = array();
3434
}
35-
$result = array_map(function($s) { return basename($s); }, $dirs);
35+
$result = array_map(function($s) { return preg_replace('|^.+[\\/]|', '', $s); }, $dirs);
3636
return $result;
3737
}
3838
else

0 commit comments

Comments
 (0)