File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
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 >
1
8
php_flag engine off
Original file line number Diff line number Diff line change 46
46
}
47
47
48
48
$ archive_path = api_get_path (SYS_ARCHIVE_PATH );
49
- $ htaccess = 'php_flag engine off ' ;
49
+ $ htaccess = <<<TEXT
50
+ order deny,allow
51
+ deny from all
52
+ # pChart generated files should be allowed
53
+ <FilesMatch "^[0-9a-f]+$">
54
+ order allow,deny
55
+ allow from all
56
+ </FilesMatch>
57
+ php_flag engine off
58
+ TEXT ;
59
+
50
60
$ result = rmdirr ($ archive_path , true , true );
51
61
if (false === $ result ) {
52
62
Display::addFlash (Display::return_message (get_lang ('ArchiveDirCleanupFailed ' ), 'error ' ));
You can’t perform that action at this time.
0 commit comments