]> BookStack Code Mirror - bookstack/commitdiff
Prevented potential apache image dir listing
authorDan Brown <redacted>
Tue, 6 Aug 2019 19:33:51 +0000 (20:33 +0100)
committerDan Brown <redacted>
Tue, 6 Aug 2019 19:35:27 +0000 (20:35 +0100)
Closes #1545

public/.htaccess
public/uploads/.gitignore
public/uploads/.htaccess [new file with mode: 0755]

index 8eb2dd0ddfa5f7b57bd0f351684dfa2e4e3ac0d3..0d55354ec6fb756086be2bcace7be11078064f29 100644 (file)
@@ -1,6 +1,6 @@
 <IfModule mod_rewrite.c>
     <IfModule mod_negotiation.c>
-        Options -MultiViews
+        Options -MultiViews -Indexes
     </IfModule>
 
     RewriteEngine On
index c96a04f008ee21e260b28f7701595ed59e2839e3..cb7328e1934841ba2afd78b3b7ceb100961337bb 100755 (executable)
@@ -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 (executable)
index 0000000..45552cb
--- /dev/null
@@ -0,0 +1 @@
+Options -Indexes
\ No newline at end of file