Skip to content

Commit 4d7fbd8

Browse files
authored
Merge pull request #7798 from live627/fix/7744
Fixing more open_basedir violations
2 parents 3288fd5 + 7f5ac06 commit 4d7fbd8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Sources/Packages.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,6 +2644,10 @@ function build_special_files__recursive($path, &$data)
26442644
$dont_chmod = false;
26452645
while ($entry = readdir($dh))
26462646
{
2647+
// Bypass directory abbreviations altogether...
2648+
if ($entry == '.' || $entry == '..')
2649+
continue;
2650+
26472651
$file_count++;
26482652
// Actually process this file?
26492653
if (!$dont_chmod && !is_dir($path . '/' . $entry) && (empty($context['file_offset']) || $context['file_offset'] < $file_count))

0 commit comments

Comments
 (0)