]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed installer failing due to htaccess. Thanks to Elias Probst
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Sat, 27 Aug 2011 08:19:45 +0000 (10:19 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Sat, 27 Aug 2011 08:19:45 +0000 (10:19 +0200)
lib/setup.php

index 9f31b47c0e5d55645c7b8eb9af5561e4c3c3a893..afe56126277d4449519e02192aaa94b4d5f979aa 100644 (file)
@@ -275,12 +275,12 @@ class OC_Setup {
        private static function createHtaccess() {
                $SERVERROOT=OC::$SERVERROOT;
                $WEBROOT=OC::$WEBROOT;
-               $content = "ErrorDocument 404 /$WEBROOT/core/templates/404.php\n";//custom 404 error page
-               $content.= '<IfModule mod_php5.c>';
-               $content.= 'php_value upload_max_filesize 512M';//upload limit
-               $content.= 'php_value post_max_size 512M';
-               $content.= 'SetEnv htaccessWorking true';
-               $content.= '</IfModule>';
+               $content = "ErrorDocument 404 $WEBROOT/core/templates/404.php\n";//custom 404 error page
+               $content.= "<IfModule mod_php5.c>\n";
+               $content.= "php_value upload_max_filesize 512M\n";//upload limit
+               $content.= "php_value post_max_size 512M\n";
+               $content.= "SetEnv htaccessWorking true\n";
+               $content.= "</IfModule>\n";
                $content.= "Options -Indexes\n";
                @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it