using rtrim
This commit is contained in:
parent
2fe56b8969
commit
7a2396208f
1 changed files with 1 additions and 4 deletions
|
@ -71,10 +71,7 @@ class OC_Setup {
|
|||
$datadir = htmlspecialchars_decode($options['directory']);
|
||||
|
||||
if (OC_Util::runningOnWindows()) {
|
||||
$datadir = realpath($datadir);
|
||||
if (substr($datadir, -1) == '\\') {
|
||||
$datadir = substr_replace($datadir ,"",-1);
|
||||
}
|
||||
$datadir = rtrim(realpath($datadir), '\\');
|
||||
}
|
||||
|
||||
//use sqlite3 when available, otherise sqlite2 will be used.
|
||||
|
|
Loading…
Reference in a new issue