From 199121134fabb885dce52645b291c82c1bf4c970 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 19 Sep 2013 10:33:04 +0200 Subject: [PATCH] return error if wrong shareType is given --- apps/files_sharing/lib/api.php | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.39.5