From: Bjoern Schiessle Date: Thu, 19 Sep 2013 08:33:04 +0000 (+0200) Subject: return error if wrong shareType is given X-Git-Tag: v6.0.0alpha2~95^2~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=199121134fabb885dce52645b291c82c1bf4c970;p=nextcloud-server.git return error if wrong shareType is given --- diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php index b88850bf17d..0f9347e34c6 100644 --- a/apps/files_sharing/lib/api.php +++ b/apps/files_sharing/lib/api.php @@ -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 {