]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix remote.php for our favorite OS - Windows
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 8 Oct 2012 19:28:21 +0000 (21:28 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 8 Oct 2012 19:28:38 +0000 (21:28 +0200)
remote.php

index 9d9903338a64dcb1be95b3022c85d9c331a690c0..137bd774b5223e8d0c2a78770c2e7af5ef3063a9 100644 (file)
@@ -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.'/';