Fix for when open_basedir is in force.

This commit is contained in:
Andrew McMillan 2008-01-22 22:14:01 +13:00
parent a4d8ba9440
commit 8afea491a9

View File

@ -14,11 +14,13 @@ if ( ! $request->AllowedTo("read") ) {
$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');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);
}
}
include_once('caldav-PUT-functions.php');
$is_collection = controlRequestContainer($request->username,$request->user_no, $request->path,true);