diff --git a/lib/pake/pakeFinder.class.php b/lib/pake/pakeFinder.class.php index 29dbf2b..35617de 100644 --- a/lib/pake/pakeFinder.class.php +++ b/lib/pake/pakeFinder.class.php @@ -641,6 +641,7 @@ public static function get_files_from_argument($arg, $target_dir = '', $relative } if ($relative and $target_dir) { + $files = array_map(create_function('$f', 'return realpath($);'), $files); $files = preg_replace('/^' . preg_quote(realpath($target_dir), '/') . '/', '', $files); // remove leading /