small fixes in webdav

remotes/origin/stable
Robin Appelman 14 years ago
parent afa2c4a2c3
commit 6affa3281a
  1. 1
      files/webdav.php
  2. 2
      lib/HTTP/WebDAV/Server/Filesystem.php

@ -41,7 +41,6 @@ $passwd=$_SERVER['PHP_AUTH_PW'];
if(OC_USER::login($user,$passwd)){
OC_UTIL::setUpFS();
$server = new HTTP_WebDAV_Server_Filesystem();
$server->db_name = $CONFIG_DBNAME;
$server->ServeRequest($CONFIG_DATADIRECTORY);
}else{

@ -410,7 +410,7 @@
OC_FILESYSTEM::unlink($path);
}
$query = OC_DB::prepare("DELETE FROM *PREFIX*properties WHERE path = ?");
$query->execute(array($options[path]));
$query->execute(array($options['path']));
return "204 No Content";
}

Loading…
Cancel
Save