Skip to content

Commit

Permalink
Merge pull request #7798 from live627/fix/7744
Browse files Browse the repository at this point in the history
Fixing more open_basedir violations
  • Loading branch information
live627 committed Jul 15, 2023
2 parents 3288fd5 + 7f5ac06 commit 4d7fbd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -2644,6 +2644,10 @@ function build_special_files__recursive($path, &$data)
$dont_chmod = false;
while ($entry = readdir($dh))
{
// Bypass directory abbreviations altogether...
if ($entry == '.' || $entry == '..')
continue;

$file_count++;
// Actually process this file?
if (!$dont_chmod && !is_dir($path . '/' . $entry) && (empty($context['file_offset']) || $context['file_offset'] < $file_count))
Expand Down

0 comments on commit 4d7fbd8

Please sign in to comment.