Browse Source

! [4772]: OpenBaseDir restriction in Packages.php

Spuds 13 năm trước cách đây
mục cha
commit
7f5207bb89
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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')