Skip to content

Commit 8ba5723

Browse files
committed
Add .htaccess in app/cache, regenerate default .htaccess after cleanup
1 parent dc86adc commit 8ba5723

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
app/cache/*
44
!app/cache/.gitkeep
5+
!app/cache/.htaccess
56

67
app/logs/*
78
!app/logs/.gitkeep

app/cache/.htaccess

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
php_flag engine off

main/admin/archive_cleanup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
$archive_path = api_get_path(SYS_ARCHIVE_PATH);
49-
$htaccess = @file_get_contents($archive_path.'.htaccess');
49+
$htaccess = 'php_flag engine off';
5050
$result = rmdirr($archive_path, true, true);
5151
if (false === $result) {
5252
Display::addFlash(Display::return_message(get_lang('ArchiveDirCleanupFailed'), 'error'));

0 commit comments

Comments
 (0)