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:
Andrew McMillan 2006-12-07 00:13:33 +13:00
parent afb21fc415
commit d449e1f836

View File

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