mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 12:24:50 +02:00
Merge pull request #2244 from owncloud/fixing-windows-datadir-master
remove trailing slash from data dir on windows
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user