snap dav module is currently read-only. error out on any request methods which can alter data.

This commit is contained in:
zotlabs 2016-10-09 21:28:24 -07:00
parent 50f579d301
commit 8eac8132e3

View File

@ -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');