]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix wrong header sent as response when overwriting files in webdav
authorRobin Appelman <icewind1991@gmail.com>
Sun, 4 Jul 2010 14:01:31 +0000 (16:01 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sun, 4 Jul 2010 14:01:31 +0000 (16:01 +0200)
inc/HTTP/WebDAV/Server/Filesystem.php

index 6c8382b446779839a715a2c73365c2db3bd78c12..11e7630d797bf5427eebcbb82df267c62f1986cc 100755 (executable)
                 $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";
                     }
                 }
             }
-
-                $query = "INSERT INTO properties SELECT * FROM properties WHERE path = '".$options['path']."'";
         }
-
         return ($new && !$existing_col) ? "201 Created" : "204 No Content";         
     }