Browse Source

! [4772]: OpenBaseDir restriction in Packages.php

Spuds 13 years ago
parent
commit
7f5207bb89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Packages.php

+ 1 - 1
Sources/Packages.php

@@ -2159,7 +2159,7 @@ function fetchPerms__recursive($path, &$data, $level)
 	while ($entry = readdir($dh))
 	{
 		// Some kind of file?
-		if (!is_dir($path . '/' . $entry))
+		if (is_file($path . '/' . $entry))
 		{
 			// Are we listing PHP files in this directory?
 			if ($save_data && !empty($data['list_contents']) && substr($entry, -4) == '.php')