redirect index.php to files/webdav.php for webdav (PROPFIND) requests

This commit is contained in:
Robin Appelman 2011-08-04 20:06:33 +02:00
parent 60a7a9d6f0
commit 01cecc8388
1 changed files with 5 additions and 0 deletions

View File

@ -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"])) {