]> source.dussan.org Git - nextcloud-server.git/commitdiff
return error if wrong shareType is given
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 19 Sep 2013 08:33:04 +0000 (10:33 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 19 Sep 2013 08:33:04 +0000 (10:33 +0200)
apps/files_sharing/lib/api.php

index b88850bf17d208029baf0e2510211e61cb90c1ca..0f9347e34c6b6e06822d157cf3723d9f26e77663 100644 (file)
@@ -133,6 +133,8 @@ class Api {
                                // read (1) if public upload is disabled
                                $permissions = $publicUpload === 'yes' ? 7 : 1;
                                break;
+                       default:
+                               return new \OC_OCS_Result(null, 404, "unknown share type");
                }
 
                try     {