mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 11:11:42 -04:00
fixes #2081
This commit is contained in:
parent
707b319157
commit
9a41453254
1 changed files with 7 additions and 0 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue