diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-12 09:14:05 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-12 09:14:05 +0100 |
commit | 2fe56b8969406ce6b3ade6d9d2adfb8740329478 (patch) | |
tree | 1e30c0b9f22dabec1a77d5326f4282e65a66b108 /lib/setup.php | |
parent | 569c7ab1384c9d01255ae7bc2075edf11508d4a6 (diff) | |
download | nextcloud-server-2fe56b8969406ce6b3ade6d9d2adfb8740329478.tar.gz nextcloud-server-2fe56b8969406ce6b3ade6d9d2adfb8740329478.zip |
fixes #2081
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 7 |
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'; |