mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Fix for when open_basedir is in force.
This commit is contained in:
parent
a4d8ba9440
commit
8afea491a9
@ -14,10 +14,12 @@ if ( ! $request->AllowedTo("read") ) {
|
|||||||
$request->DoResponse(403);
|
$request->DoResponse(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($c->dbg['ALL']) || $c->dbg['put'] ) {
|
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || $c->dbg['put']) ) {
|
||||||
$fh = fopen('/tmp/PUT.txt','w');
|
$fh = fopen('/tmp/PUT.txt','w');
|
||||||
fwrite($fh,$request->raw_post);
|
if ( $fh ) {
|
||||||
fclose($fh);
|
fwrite($fh,$request->raw_post);
|
||||||
|
fclose($fh);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once('caldav-PUT-functions.php');
|
include_once('caldav-PUT-functions.php');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user