mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
[security] Only save debugging output when we are debugging.
This commit is contained in:
parent
f00f07eb8f
commit
4872988f2e
@ -14,9 +14,11 @@ if ( ! $request->AllowedTo("read") ) {
|
|||||||
$request->DoResponse(403);
|
$request->DoResponse(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset($c->dbg['ALL']) || $c->dbg['put'] ) {
|
||||||
$fh = fopen('/tmp/PUT.txt','w');
|
$fh = fopen('/tmp/PUT.txt','w');
|
||||||
fwrite($fh,$request->raw_post);
|
fwrite($fh,$request->raw_post);
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
|
}
|
||||||
|
|
||||||
include_once('caldav-PUT-functions.php');
|
include_once('caldav-PUT-functions.php');
|
||||||
$is_collection = controlRequestContainer($request->username,$request->user_no, $request->path,true);
|
$is_collection = controlRequestContainer($request->username,$request->user_no, $request->path,true);
|
||||||
|
|||||||
@ -10,6 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
dbg_error_log("REPORT", "method handler");
|
dbg_error_log("REPORT", "method handler");
|
||||||
|
|
||||||
|
if ( isset($c->dbg['ALL']) || $c->dbg['report'] ) {
|
||||||
|
$fh = fopen('/tmp/REPORT.txt','w');
|
||||||
|
fwrite($fh,$request->raw_post);
|
||||||
|
fclose($fh);
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! ($request->AllowedTo('read') || $request->AllowedTo('freebusy')) ) {
|
if ( ! ($request->AllowedTo('read') || $request->AllowedTo('freebusy')) ) {
|
||||||
// The specification states that a lack of privileges MUST result in a 404. Caldav-15, Section 7.10, p66
|
// The specification states that a lack of privileges MUST result in a 404. Caldav-15, Section 7.10, p66
|
||||||
$request->DoResponse( 404 );
|
$request->DoResponse( 404 );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user