diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-19 10:33:04 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-19 10:33:04 +0200 |
commit | 199121134fabb885dce52645b291c82c1bf4c970 (patch) | |
tree | 45358f42417ed68be73467c5d2dee2e8725983d2 /apps/files_sharing/lib/api.php | |
parent | 171b7ebffe96c4f6bd326652a6c12118956e39ca (diff) | |
download | nextcloud-server-199121134fabb885dce52645b291c82c1bf4c970.tar.gz nextcloud-server-199121134fabb885dce52645b291c82c1bf4c970.zip |
return error if wrong shareType is given
Diffstat (limited to 'apps/files_sharing/lib/api.php')
-rw-r--r-- | apps/files_sharing/lib/api.php | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |