aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-09-20 11:59:25 +0200
committersteckbrief <steckbrief@chefmail.de>2016-09-20 11:59:25 +0200
commitbe3ad3bd19e921a287ee832f8f02ce96c5d09801 (patch)
tree22799b9b5415f1c6fd90706149f099a4921ea379 /include
parent2d096355000379eef8f18ab1b3a124ceceefcc72 (diff)
MKGETDIR_PROTECT_INDEX now adds an htaccess file blocking the directory index instead of adding an index.htm
Diffstat (limited to 'include')
-rw-r--r--include/functions.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 10a93cb8d..219ec16d7 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -140,12 +140,12 @@ function mkgetdir($dir, $flags=MKGETDIR_DEFAULT)
if( $flags&MKGETDIR_PROTECT_HTACCESS )
{
$file = $dir.'/.htaccess';
- file_exists($file) or @file_put_contents( $file, 'deny from all' );
+ file_exists($file) or @file_put_contents( $file, 'DENY FROM all' );
}
if( $flags&MKGETDIR_PROTECT_INDEX )
{
- $file = $dir.'/index.htm';
- file_exists($file) or @file_put_contents( $file, 'Not allowed!' );
+ $file = $dir.'/.htaccess';
+ file_exists($file) or @file_put_contents( $file, 'Options -Indexes' );
}
}
if ( !is_writable($dir) )