Skip to content

Commit

Permalink
fixed a bug where files were ignored if the directory path contains /../
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot authored and sebastianbergmann committed Dec 15, 2009
1 parent 24fbeac commit c608010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion File/Iterator.php
Expand Up @@ -97,7 +97,7 @@ public function accept()

// Filter files in hidden directories.
if (strpos($filename, '.') === 0 ||
preg_match('=/\.[^/]*/=', $current->getPathname())) {
preg_match('=/\.[^/]*/=', $current->getRealPath())) {
return FALSE;
}

Expand Down

0 comments on commit c608010

Please sign in to comment.