From 4de719b3254ae81a7700401832c0a09c4e295525 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 6 Aug 2019 20:33:51 +0100 Subject: [PATCH] Prevented potential apache image dir listing Closes #1545 --- public/.htaccess | 2 +- public/uploads/.gitignore | 3 ++- public/uploads/.htaccess | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 public/uploads/.htaccess diff --git a/public/.htaccess b/public/.htaccess index 8eb2dd0dd..0d55354ec 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,6 +1,6 @@ - Options -MultiViews + Options -MultiViews -Indexes RewriteEngine On diff --git a/public/uploads/.gitignore b/public/uploads/.gitignore index c96a04f00..cb7328e19 100755 --- a/public/uploads/.gitignore +++ b/public/uploads/.gitignore @@ -1,2 +1,3 @@ * -!.gitignore \ No newline at end of file +!.gitignore +!.htaccess \ No newline at end of file diff --git a/public/uploads/.htaccess b/public/uploads/.htaccess new file mode 100755 index 000000000..45552cb63 --- /dev/null +++ b/public/uploads/.htaccess @@ -0,0 +1 @@ +Options -Indexes \ No newline at end of file