mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +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");
|
dbg_error_log("PUT", "method handler");
|
||||||
|
|
||||||
// The PUT method is not sent with any wrapping XML so we simply store it
|
if ( ! $request->AllowedTo("read") ) {
|
||||||
// after constructing an eTag and getting a name for it...
|
$request->DoResponse(403);
|
||||||
|
}
|
||||||
|
|
||||||
$fh = fopen('/tmp/PUT.txt','w');
|
$fh = fopen('/tmp/PUT.txt','w');
|
||||||
fwrite($fh,$request->raw_post);
|
fwrite($fh,$request->raw_post);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user