Browse Source

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 10 years ago
parent
commit
bc3ea21f2a
1 changed files with 1 additions and 1 deletions
  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');