Skip to content

Commit

Permalink
Maybe this would help, taht the htaccess files white list html files …
Browse files Browse the repository at this point in the history
…refs #5148
  • Loading branch information
mattab committed May 13, 2014
1 parent 63af7b0 commit 60f40c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Installation/ServerFilesGenerator.php
Expand Up @@ -35,7 +35,7 @@ public static function createHtAccessFiles()

// more selective allow/deny filters
$allowAny = "<Files \"*\">\n" . $allow . "Satisfy any\n</Files>\n";
$allowStaticAssets = "<Files ~ \"\\.(test\.php|gif|ico|jpg|png|svg|js|css|swf)$\">\n" . $allow . "Satisfy any\n</Files>\n";
$allowStaticAssets = "<Files ~ \"\\.(test\.php|gif|ico|jpg|png|svg|js|css|htm|html|swf)$\">\n" . $allow . "Satisfy any\n</Files>\n";
$denyDirectPhp = "<Files ~ \"\\.(php|php4|php5|inc|tpl|in|twig)$\">\n" . $deny . "</Files>\n";

$directoriesToProtect = array(
Expand Down

0 comments on commit 60f40c9

Please sign in to comment.