Skip to content

Commit e2d89c5

Browse files
committed
Tracking: #fix to adapt app/cache/.htaccess regeneration on archive cleanup to include the fix for the issue displaying the pChart-generated charts due to Apache 2.4 syntax change - refs #5393 - refs BT#22638
1 parent 0c4d67c commit e2d89c5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

main/admin/archive_cleanup.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,20 @@
4949
$htaccess = <<<TEXT
5050
<IfModule mod_authz_core.c>
5151
Require all denied
52+
# pChart generated files should be allowed
53+
<FilesMatch "^[0-9a-f]+$">
54+
require all granted
55+
</FilesMatch>
5256
</IfModule>
5357
<IfModule !mod_authz_core.c>
5458
Order deny,allow
5559
Deny from all
60+
# pChart generated files should be allowed
61+
<FilesMatch "^[0-9a-f]+$">
62+
order allow,deny
63+
allow from all
64+
</FilesMatch>
5665
</IfModule>
57-
# pChart generated files should be allowed
58-
<FilesMatch "^[0-9a-f]+$">
59-
order allow,deny
60-
allow from all
61-
</FilesMatch>
6266
php_flag engine off
6367
TEXT;
6468

0 commit comments

Comments
 (0)