diff --git a/lib/base.php b/lib/base.php index ef574b2d89..dc6e0b1294 100644 --- a/lib/base.php +++ b/lib/base.php @@ -687,7 +687,11 @@ class OC { } // Handle WebDAV if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') { - header('location: ' . OC_Helper::linkToRemote('webdav')); + // not allowed any more to prevent people + // mounting this root directly. + // Users need to mount remote.php/webdav instead. + header('HTTP/1.1 405 Method Not Allowed'); + header('Status: 405 Method Not Allowed'); return; }