summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-26 21:56:29 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-26 21:56:29 +0200
commit5fda0e4b3b65c9bb0be4c627a0db87431875760a (patch)
tree2c325744e89eb793ecf66a92cc539453f74ff4c7 /lib
parent6930af4c0fd9ca251a2eda5d345cb7d71c3f475d (diff)
downloadnextcloud-server-5fda0e4b3b65c9bb0be4c627a0db87431875760a.tar.gz
nextcloud-server-5fda0e4b3b65c9bb0be4c627a0db87431875760a.zip
make *DAV work with movable apps
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index fa4c9850a3b..ba378653f47 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -413,6 +413,7 @@ class OC{
//make sure temporary files are cleaned up
register_shutdown_function(array('OC_Helper','cleanTmp'));
+ //parse the given parameters
self::$REQUESTEDAPP = (isset($_GET['app'])?strip_tags($_GET['app']):'files');
self::$REQUESTEDFILE = (isset($_GET['getfile'])?$_GET['getfile']:null);
if(substr_count(self::$REQUESTEDFILE, '?') != 0){
@@ -432,6 +433,9 @@ class OC{
exit;
}
}
+
+ //update path to lib base
+ file_put_contents(OC::$APPSROOT . '/apps/inc.php', '<?php require_once(\'' . OC::$SERVERROOT . '/lib/base.php' . '\'); ?>');
}
}