We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb8bfc commit e70b243Copy full SHA for e70b243
app/cache/.htaccess
@@ -1 +1,8 @@
1
+order deny,allow
2
+deny from all
3
+# pChart generated files should be allowed
4
+<FilesMatch "^[0-9a-f]+$">
5
+ order allow,deny
6
+ allow from all
7
+</FilesMatch>
8
php_flag engine off
main/admin/archive_cleanup.php
@@ -46,7 +46,17 @@
46
}
47
48
$archive_path = api_get_path(SYS_ARCHIVE_PATH);
49
- $htaccess = 'php_flag engine off';
+ $htaccess = <<<TEXT
50
51
52
53
54
55
56
57
+php_flag engine off
58
+TEXT;
59
+
60
$result = rmdirr($archive_path, true, true);
61
if (false === $result) {
62
Display::addFlash(Display::return_message(get_lang('ArchiveDirCleanupFailed'), 'error'));
0 commit comments