Remove WebDAV redirect from the root path
This will prevent people mounting the root path. They should use the full webdav path instead. Fixes #4923
This commit is contained in:
parent
2d14daf36b
commit
c186f33428
|
@ -687,7 +687,11 @@ class OC {
|
||||||
}
|
}
|
||||||
// Handle WebDAV
|
// Handle WebDAV
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue