summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-10-08 21:28:21 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-10-08 21:28:38 +0200
commita657bfa369c6cf110f0258e085ec201d9a671210 (patch)
treec627fba648c34f89f8d10ffe7f3592a985ef89a5 /remote.php
parent06d00af9f89d9c858b6f7a3fb11de85d4da8d6fc (diff)
downloadnextcloud-server-a657bfa369c6cf110f0258e085ec201d9a671210.tar.gz
nextcloud-server-a657bfa369c6cf110f0258e085ec201d9a671210.zip
fix remote.php for our favorite OS - Windows
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/remote.php b/remote.php
index 9d9903338a6..137bd774b52 100644
--- a/remote.php
+++ b/remote.php
@@ -29,7 +29,11 @@ switch ($app) {
default:
OC_Util::checkAppEnabled($app);
OC_App::loadApp($app);
- $file = '/' . OC_App::getAppPath($app) .'/'. $parts[1];
+ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
+ $file = OC_App::getAppPath($app) .'/'. $parts[1];
+ }else{
+ $file = '/' . OC_App::getAppPath($app) .'/'. $parts[1];
+ }
break;
}
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';