mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Fix logging type on MOVE and remove redundant code.
This commit is contained in:
parent
fdfb20b14b
commit
92e0144666
@ -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() ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user