Another check to ensure the main index.php doesn't get deleted when mana...
@@ -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');