Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-04 22:06:33 +0400
committerRobin Appelman <icewind1991@gmail.com>2011-08-04 22:06:33 +0400
commit01cecc8388179e1b6b8f759c4d717848f191eb25 (patch)
treeade8f206609fbd1044cd6596abb1d67700df2ed4 /index.php
parent60a7a9d6f0c65f81edd7d1bf54a55a48538e6f77 (diff)
redirect index.php to files/webdav.php for webdav (PROPFIND) requests
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 46dc990af68..a804a25d95b 100644
--- a/index.php
+++ b/index.php
@@ -40,6 +40,11 @@ elseif($not_installed OR $install_called) {
require_once('setup.php');
}
+if($_SERVER['REQUEST_METHOD']=='PROPFIND'){//handle webdav
+ header('location: '.OC_Helper::linkTo('files','webdav.php'));
+ exit();
+}
+
// Someone is logged in :
elseif(OC_User::isLoggedIn()) {
if(isset($_GET["logout"]) and ($_GET["logout"])) {