diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-24 10:05:21 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-24 10:05:21 -0700 |
commit | 54e9d8c306b1a443ab1ba921d4e450c7477d0445 (patch) | |
tree | 89f169d8a327d028361400917c2e467c234e12fc /lib/base.php | |
parent | 222f1b8da27b396dd40902237766fbfd945a439c (diff) | |
parent | c3f62d983f3536c9e261ce7a210d5610775fd5f0 (diff) | |
download | nextcloud-server-54e9d8c306b1a443ab1ba921d4e450c7477d0445.tar.gz nextcloud-server-54e9d8c306b1a443ab1ba921d4e450c7477d0445.zip |
Merge pull request #5507 from owncloud/webdav-removeredirectfromindex
Remove WebDAV redirect from the root path
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |