mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
To avoid information loss we ensure people have a minimum of 'read' access
before we even _start_ looking for other kinds of errors.
This commit is contained in:
parent
afb21fc415
commit
d449e1f836
@ -10,8 +10,9 @@
|
||||
*/
|
||||
dbg_error_log("PUT", "method handler");
|
||||
|
||||
// The PUT method is not sent with any wrapping XML so we simply store it
|
||||
// after constructing an eTag and getting a name for it...
|
||||
if ( ! $request->AllowedTo("read") ) {
|
||||
$request->DoResponse(403);
|
||||
}
|
||||
|
||||
$fh = fopen('/tmp/PUT.txt','w');
|
||||
fwrite($fh,$request->raw_post);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user