Skip to content

Commit

Permalink
fix: Remove .htaccess generation as error pages should be accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
tweis committed Jun 25, 2024
1 parent b12ce72 commit 22ee25c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Classes/Command/GenerateErrorPagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ private function initializeTargetDirectory(): void
} elseif (!is_dir(ConfigurationService::getErrorDocumentDirectory())) {
throw new Exception('Target directory is not a directory', 1394124945);
}

if (!file_exists(ConfigurationService::getErrorDocumentDirectory() . '.htaccess')) {
GeneralUtility::writeFile(ConfigurationService::getErrorDocumentDirectory() . '.htaccess', 'deny from all');
}
}

protected function saveErrorPage(int $errorCode, Site $site, SiteLanguage $language, string $content): void
Expand Down

0 comments on commit 22ee25c

Please sign in to comment.