diff --git a/files/webdav.php b/files/webdav.php deleted file mode 100644 index 87dd0191969..00000000000 --- a/files/webdav.php +++ /dev/null @@ -1,30 +0,0 @@ -. - * - */ - -// only need filesystem apps -$RUNTIME_APPTYPES=array('filesystem', 'authentication'); -require_once '../lib/base.php'; -$baseuri = OC::$WEBROOT. '/files/webdav.php'; -require_once 'apps/files/appinfo/remote.php'; diff --git a/lib/base.php b/lib/base.php index 62427fa568c..3f89b51a61c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -688,7 +688,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; }