snap dav module is currently read-only. error out on any request methods which can alter data.
This commit is contained in:
parent
50f579d301
commit
8eac8132e3
@ -58,6 +58,9 @@ class Snap extends \Zotlabs\Web\Controller {
|
||||
else
|
||||
killme();
|
||||
|
||||
if(! in_array(strtolower($_SERVER['REQUEST_METHOD']),['propfind','get','head']))
|
||||
killme();
|
||||
|
||||
$auth = new \Zotlabs\Storage\BasicAuth();
|
||||
$auth->setRealm(ucfirst(\Zotlabs\Lib\System::get_platform_name()) . 'WebDAV');
|
||||
|
||||
|
Reference in New Issue
Block a user