]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix check if we upload to /Shared
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 29 Oct 2013 21:49:12 +0000 (22:49 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 29 Oct 2013 21:49:12 +0000 (22:49 +0100)
lib/connector/sabre/file.php

index 612a36514de420350d1895e4e49f8c1119fc9c80..bbfb27a8a9e53ff0f68e50525ea61fcb51cb40ae 100644 (file)
@@ -56,7 +56,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
                // if file is located in /Shared we write the part file to the users
                // root folder because we can't create new files in /shared
                // we extend the name with a random number to avoid overwriting a existing file
-               if (dirname($partpath) === 'Shared') {
+               if (dirname($partpath) === '/Shared') {
                        $partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand() . '.part';
                }