summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-15 13:23:39 -0500
committerBharat Mediratta <bharat@menalto.com>2013-02-15 13:23:39 -0500
commit1748aae9d1b3735747555025e7c202b895837625 (patch)
tree02d7ff705138996b251fd73a230ca8fe3594424a
parent8b0088fd8d1774f4bdf5ae345ab5ad2da1eaedaf (diff)
Create an empty and secure gallery3/bin directory for use with the new
system::find_binary code. Fixes #2004.
-rwxr-xr-xbin/.htaccess8
-rw-r--r--bin/README5
2 files changed, 13 insertions, 0 deletions
diff --git a/bin/.htaccess b/bin/.htaccess
new file mode 100755
index 00000000..a3815526
--- /dev/null
+++ b/bin/.htaccess
@@ -0,0 +1,8 @@
+DirectoryIndex .htaccess
+SetHandler Gallery_Security_Do_Not_Remove
+Options None
+<IfModule mod_rewrite.c>
+RewriteEngine off
+</IfModule>
+Order allow,deny
+Deny from all
diff --git a/bin/README b/bin/README
new file mode 100644
index 00000000..ec09639f
--- /dev/null
+++ b/bin/README
@@ -0,0 +1,5 @@
+This directory contains utility software that Gallery uses to perform
+image manipulation and other useful functions. It should not be
+accessible from a web browser, and by default it's empty. Gallery
+will instruct you when it's appropriate to download software and
+install it here.