Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 16:37:48 +0400
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 20:00:48 +0400
commit7de540b8ee6964050d0bcfe2394ba692132d2640 (patch)
tree5792e5bd18afcc4d50faf89d7098ac5b9f9998a0 /lib/setup.php
parent9a414532540b7c4804e8db27f1b2a884cb6eddda (diff)
using rtrim
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/setup.php b/lib/setup.php
index e9c090c5b6a..b4b07bd70e4 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -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.