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 /core/ajax/share.php | |
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 'core/ajax/share.php')
-rw-r--r-- | core/ajax/share.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 22f483ec0e1..fa75f37587f 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -66,6 +66,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo } else { OC_JSON::success(); } + } catch (\OC\HintException $exception) { + OC_JSON::error(array('data' => array('message' => $exception->getHint()))); } catch (Exception $exception) { OC_JSON::error(array('data' => array('message' => $exception->getMessage()))); } |