From: Thomas Mueller Date: Tue, 12 Mar 2013 08:14:05 +0000 (+0100) Subject: fixes #2081 X-Git-Tag: v6.0.0alpha2~1033^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2fe56b8969406ce6b3ade6d9d2adfb8740329478;p=nextcloud-server.git fixes #2081 --- 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';