diff --git a/lib/private/Setup.php b/lib/private/Setup.php index d40e03062b..7811754ddc 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -542,27 +542,27 @@ class Setup { //Require all denied $now = date('Y-m-d H:i:s'); $content = "# Generated by Nextcloud on $now\n"; - $content.= "# Section for Apache 2.4 and 2.5\n"; - $content.= "\n"; - $content.= " Require all denied\n"; - $content.= "\n"; - $content.= "\n"; - $content.= " Deny from all\n"; - $content.= " Satisfy All\n"; - $content.= "\n\n"; - $content.= "# Section for Apache 2.2\n"; - $content.= "\n"; - $content.= " \n"; - $content.= " \n"; - $content.= " Deny from all\n"; - $content.= " \n"; - $content.= " Satisfy All\n"; - $content.= " \n"; - $content.= "\n\n"; - $content.= "# Section for Apache 2.2 to 2.5\n"; - $content.= "\n"; - $content.= " IndexIgnore *\n"; - $content.= ""; + $content .= "# Section for Apache 2.4 to 2.6\n"; + $content .= "\n"; + $content .= " Require all denied\n"; + $content .= "\n"; + $content .= "\n"; + $content .= " Deny from all\n"; + $content .= " Satisfy All\n"; + $content .= "\n\n"; + $content .= "# Section for Apache 2.2\n"; + $content .= "\n"; + $content .= " \n"; + $content .= " \n"; + $content .= " Deny from all\n"; + $content .= " \n"; + $content .= " Satisfy All\n"; + $content .= " \n"; + $content .= "\n\n"; + $content .= "# Section for Apache 2.2 to 2.6\n"; + $content .= "\n"; + $content .= " IndexIgnore *\n"; + $content .= ""; $baseDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); file_put_contents($baseDir . '/.htaccess', $content);