diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-04 20:06:33 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-04 20:06:33 +0200 |
commit | 01cecc8388179e1b6b8f759c4d717848f191eb25 (patch) | |
tree | ade8f206609fbd1044cd6596abb1d67700df2ed4 /index.php | |
parent | 60a7a9d6f0c65f81edd7d1bf54a55a48538e6f77 (diff) | |
download | nextcloud-server-01cecc8388179e1b6b8f759c4d717848f191eb25.tar.gz nextcloud-server-01cecc8388179e1b6b8f759c4d717848f191eb25.zip |
redirect index.php to files/webdav.php for webdav (PROPFIND) requests
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
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"])) { |