mirror of
https://github.com/nextcloud/server.git
synced 2026-02-14 00:04:57 -05:00
Merge pull request #2244 from owncloud/fixing-windows-datadir-master
remove trailing slash from data dir on windows
This commit is contained in:
commit
8ca01451fd
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ class OC_Setup {
|
|||
$password = htmlspecialchars_decode($options['adminpass']);
|
||||
$datadir = htmlspecialchars_decode($options['directory']);
|
||||
|
||||
if (OC_Util::runningOnWindows()) {
|
||||
$datadir = rtrim(realpath($datadir), '\\');
|
||||
}
|
||||
|
||||
//use sqlite3 when available, otherise sqlite2 will be used.
|
||||
if($dbtype=='sqlite' and class_exists('SQLite3')) {
|
||||
$dbtype='sqlite3';
|
||||
|
|
|
|||
Loading…
Reference in a new issue