Browse Source

Only request "IndexIgnore" if mod_autoindex is loaded

Signed-off-by: Robert Scheck <robert@fedoraproject.org>
pull/3505/head
Robert Scheck 9 years ago
parent
commit
25a2cb8c6e
  1. 2
      apps/user_ldap/tests/.htaccess
  2. 2
      build/.htaccess
  3. 2
      config/.htaccess
  4. 2
      lib/private/Setup.php

2
apps/user_ldap/tests/.htaccess

@ -11,4 +11,6 @@ Satisfy All
</ifModule>
# section for Apache 2.2 and 2.4
<ifModule mod_autoindex.c>
IndexIgnore *
</ifModule>

2
build/.htaccess

@ -9,4 +9,6 @@ deny from all
</ifModule>
# section for Apache 2.2 and 2.4
<ifModule mod_autoindex.c>
IndexIgnore *
</ifModule>

2
config/.htaccess

@ -9,4 +9,6 @@ deny from all
</ifModule>
# section for Apache 2.2 and 2.4
<ifModule mod_autoindex.c>
IndexIgnore *
</ifModule>

2
lib/private/Setup.php

@ -492,7 +492,9 @@ class Setup {
$content.= "Satisfy All\n";
$content.= "</ifModule>\n\n";
$content.= "# section for Apache 2.2 and 2.4\n";
$content.= "<ifModule mod_autoindex.c>\n";
$content.= "IndexIgnore *\n";
$content.= "</ifModule>\n";
$baseDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
file_put_contents($baseDir . '/.htaccess', $content);

Loading…
Cancel
Save