diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-06-26 16:01:16 +0200 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-06-26 16:01:16 +0200 |
commit | b318b9cf17a1225e0b43f659ea279b54fd61bf07 (patch) | |
tree | d399ad75e97fb3f010a92181a09544c3f5353456 /apps/files_sharing | |
parent | 796aae4402c1b71e7e44ee11ae985a8600b52513 (diff) | |
parent | 738b78f1b0eec61f4a55dd356d6b6a541ff56246 (diff) | |
download | nextcloud-server-b318b9cf17a1225e0b43f659ea279b54fd61bf07.tar.gz nextcloud-server-b318b9cf17a1225e0b43f659ea279b54fd61bf07.zip |
Merge pull request #17008 from owncloud/fix-17006
Improve splitting of username and remote adress when username contains an `@`
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/api/local.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php index 03812800c17..2d848f8b16e 100644 --- a/apps/files_sharing/api/local.php +++ b/apps/files_sharing/api/local.php @@ -27,6 +27,8 @@ namespace OCA\Files_Sharing\API; +use OC\HintException; + class Local { /** @@ -294,6 +296,8 @@ class Local { $shareWith, $permissions ); + } catch (HintException $e) { + return new \OC_OCS_Result(null, 400, $e->getHint()); } catch (\Exception $e) { return new \OC_OCS_Result(null, 403, $e->getMessage()); } |