Fix logging type on MOVE and remove redundant code.

This commit is contained in:
Andrew McMillan 2010-03-29 12:38:37 +13:00
parent fdfb20b14b
commit 92e0144666

View File

@ -14,7 +14,7 @@ require_once('DAVResource.php');
$request->NeedPrivilege('DAV::unbind');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['move']) && $c->dbg['move'])) ) {
$fh = fopen('/tmp/MOVE.txt','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
@ -24,10 +24,6 @@ if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put'
$lock_opener = $request->FailIfLocked();
if ( $request->path == '/' || $request->IsPrincipal() || $request->destination == '' ) {
$request->NeedPrivilege('DAV::unbind');
}
$dest = new DAVResource($request->destination);
if ( $dest->dav_name() == '/' || $dest->IsPrincipal() ) {