From: Dan Brown Date: Tue, 6 Aug 2019 19:33:51 +0000 (+0100) Subject: Prevented potential apache image dir listing X-Git-Tag: v0.26.4~1^2~2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/4de719b3254ae81a7700401832c0a09c4e295525 Prevented potential apache image dir listing Closes #1545 --- 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