From 01cecc8388179e1b6b8f759c4d717848f191eb25 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Aug 2011 20:06:33 +0200 Subject: [PATCH] redirect index.php to files/webdav.php for webdav (PROPFIND) requests --- index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.php b/index.php index 46dc990af6..a804a25d95 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"])) {