Explorar o código

Merge pull request #1325 from Oldiesmann/release-2.1

Another check to ensure the main index.php doesn't get deleted when mana...
Michael Eshom %!s(int64=10) %!d(string=hai) anos
pai
achega
bc3ea21f2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/ManageAttachments.php

+ 1 - 1
Sources/ManageAttachments.php

@@ -2006,7 +2006,7 @@ function ManageAttachmentPaths()
 							$path = $boarddir . DIRECTORY_SEPARATOR . $path;
 						}
 
-						if (isset($doit))
+						if (isset($doit) && realpath($path) != realpath($boarddir))
 						{
 							unlink($path . '/.htaccess');
 							unlink($path . '/index.php');