diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-07-04 16:01:31 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-07-04 16:01:31 +0200 |
commit | baf7e00a943afbbb62f374b63d9d4280a5aa22d1 (patch) | |
tree | 2bcd64a5ecab718d7afb34678395c2cf74508ff4 | |
parent | 0d299885befea3005d24330d32c0fa40075a2c94 (diff) | |
download | nextcloud-server-baf7e00a943afbbb62f374b63d9d4280a5aa22d1.tar.gz nextcloud-server-baf7e00a943afbbb62f374b63d9d4280a5aa22d1.zip |
fix wrong header sent as response when overwriting files in webdav
-rwxr-xr-x | inc/HTTP/WebDAV/Server/Filesystem.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/inc/HTTP/WebDAV/Server/Filesystem.php b/inc/HTTP/WebDAV/Server/Filesystem.php index 6c8382b4467..11e7630d797 100755 --- a/inc/HTTP/WebDAV/Server/Filesystem.php +++ b/inc/HTTP/WebDAV/Server/Filesystem.php @@ -493,8 +493,6 @@ $stat = $this->DELETE(array("path" => $options["dest"])); if (($stat{0} != "2") && (substr($stat, 0, 3) != "404")) { return $stat; - }else{ - $new=true; } } else { return "412 precondition failed"; @@ -553,10 +551,7 @@ } } } - - $query = "INSERT INTO properties SELECT * FROM properties WHERE path = '".$options['path']."'"; } - return ($new && !$existing_col) ? "201 Created" : "204 No Content"; } |