From 25a2cb8c6e821df0360d1843c5266cbf7acc2b55 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Thu, 16 Feb 2017 11:45:11 +0100 Subject: Only request "IndexIgnore" if mod_autoindex is loaded Signed-off-by: Robert Scheck --- lib/private/Setup.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/private/Setup.php') diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 321e8ea4c66..b20614f8971 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -492,7 +492,9 @@ class Setup { $content.= "Satisfy All\n"; $content.= "\n\n"; $content.= "# section for Apache 2.2 and 2.4\n"; + $content.= "\n"; $content.= "IndexIgnore *\n"; + $content.= "\n"; $baseDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); file_put_contents($baseDir . '/.htaccess', $content); -- cgit v1.2.3