diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-28 05:08:41 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-28 05:08:41 +0400 |
commit | 10eaf628195ca13ac299bb13291ad01f043973a3 (patch) | |
tree | bd0c337f90f990b4b255ee099f17ce10fc96ec07 | |
parent | 2fc3acbb0256e673df3aa3c64c67ba281f574c96 (diff) |
Removing test.php from white-listed files since, that makes no sense to white list a php script
-rw-r--r-- | core/Updates/2.4.0-b2.php | 5 | ||||
-rw-r--r-- | plugins/Installation/ServerFilesGenerator.php | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/core/Updates/2.4.0-b2.php b/core/Updates/2.4.0-b2.php index 0cbd91e476..a5f0adedb0 100644 --- a/core/Updates/2.4.0-b2.php +++ b/core/Updates/2.4.0-b2.php @@ -19,7 +19,8 @@ class Updates_2_4_0_b2 extends Updates { ServerFilesGenerator::deleteWebConfigFiles(); ServerFilesGenerator::createWebConfigFiles(); - } - + ServerFilesGenerator::deleteHtAccessFiles(); + ServerFilesGenerator::createHtAccessFiles(); + } } diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php index 9cce04d41f..aa87042318 100644 --- a/plugins/Installation/ServerFilesGenerator.php +++ b/plugins/Installation/ServerFilesGenerator.php @@ -30,7 +30,7 @@ class ServerFilesGenerator $allowStaticAssets = "# Allow to serve static files which are safe\n" . - "<Files ~ \"\\.(test\.php|gif|ico|jpg|png|svg|js|css|htm|html|swf|mp3|mp4|wav|ogg|avi)$\">\n" . + "<Files ~ \"\\.(gif|ico|jpg|png|svg|js|css|htm|html|swf|mp3|mp4|wav|ogg|avi)$\">\n" . $allow . "\n" . "</Files>\n"; |