]> source.dussan.org Git - nextcloud-server.git/commitdiff
redirect index.php to files/webdav.php for webdav (PROPFIND) requests
authorRobin Appelman <icewind1991@gmail.com>
Thu, 4 Aug 2011 18:06:33 +0000 (20:06 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 4 Aug 2011 18:06:33 +0000 (20:06 +0200)
index.php

index 46dc990af68fb2c04b795b44b5491301228266ea..a804a25d95b23200c7ef1c71d3c8d328a2b59a5d 100644 (file)
--- 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"])) {