Add .htaccess in app/cache, regenerate default .htaccess after cleanup

pull/3883/head
Julio Montoya 4 years ago
parent dc86adc7d5
commit 8ba5723974
  1. 1
      .gitignore
  2. 1
      app/cache/.htaccess
  3. 2
      main/admin/archive_cleanup.php

1
.gitignore vendored

@ -2,6 +2,7 @@
app/cache/*
!app/cache/.gitkeep
!app/cache/.htaccess
app/logs/*
!app/logs/.gitkeep

@ -0,0 +1 @@
php_flag engine off

@ -46,7 +46,7 @@ if ($form->validate()) {
}
$archive_path = api_get_path(SYS_ARCHIVE_PATH);
$htaccess = @file_get_contents($archive_path.'.htaccess');
$htaccess = 'php_flag engine off';
$result = rmdirr($archive_path, true, true);
if (false === $result) {
Display::addFlash(Display::return_message(get_lang('ArchiveDirCleanupFailed'), 'error'));

Loading…
Cancel
Save