Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-12 12:14:05 +0400
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 20:00:35 +0400
commit9a414532540b7c4804e8db27f1b2a884cb6eddda (patch)
treeaf796e88b9f5058c2868bcdcd9b951e957ddb013 /lib/setup.php
parent707b31915717944a42a2c2abe292f91476f3b71d (diff)
fixes #2081
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 8814447f52f..e9c090c5b6a 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -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';