From a657bfa369c6cf110f0258e085ec201d9a671210 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 8 Oct 2012 21:28:21 +0200 Subject: [PATCH] fix remote.php for our favorite OS - Windows --- remote.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/remote.php b/remote.php index 9d9903338a..137bd774b5 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.'/';