Security update for Core, with self-updated composer
[yaffs-website] / vendor / phpunit / php-file-iterator / src / Factory.php
index 19c93ad44b23a78a55e79ba4d7be163d28e1d6ee..9cc3fb7b16d7aeb1f34ddee54cc8762d06cf5b1c 100644 (file)
@@ -80,9 +80,9 @@ class File_Iterator_Factory
 
         foreach ($paths as $path) {
             if ($locals = glob($path, GLOB_ONLYDIR)) {
-                $_paths = array_merge($_paths, $locals);
+                $_paths = array_merge($_paths, array_map('realpath', $locals));
             } else {
-                $_paths[] = $path;
+                $_paths[] = realpath($path);
             }
         }