summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-10-10 23:00:46 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-10-10 23:00:46 +0200
commit7a30f465439f65a1bcec61cf61f0cf7cae6664d7 (patch)
treec768db36fc94a2873ff5754e642392a2f2f2d311 /remote.php
parentccf8df440504b02f5d1387b263b3f09daf09a2a2 (diff)
parent2c3674ea87c6303f8dc1345d056871ca3637b437 (diff)
downloadnextcloud-server-7a30f465439f65a1bcec61cf61f0cf7cae6664d7.tar.gz
nextcloud-server-7a30f465439f65a1bcec61cf61f0cf7cae6664d7.zip
Merge branch 'master' of github.com:owncloud/core into vcategories_db
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.'/';