]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixes #2081
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 12 Mar 2013 08:14:05 +0000 (09:14 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Tue, 12 Mar 2013 08:14:05 +0000 (09:14 +0100)
lib/setup.php

index 8814447f52feb4c78edc2804047af44f62990e7a..e9c090c5b6a74bc4c8dff431bb933746d1703ded 100644 (file)
@@ -70,6 +70,13 @@ class OC_Setup {
                        $password = htmlspecialchars_decode($options['adminpass']);
                        $datadir = htmlspecialchars_decode($options['directory']);
 
+                       if (OC_Util::runningOnWindows()) {
+                               $datadir = realpath($datadir);
+                               if (substr($datadir, -1) == '\\') {
+                                       $datadir = substr_replace($datadir ,"",-1);
+                               }
+                       }
+
                        //use sqlite3 when available, otherise sqlite2 will be used.
                        if($dbtype=='sqlite' and class_exists('SQLite3')) {
                                $dbtype='sqlite3';