aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax/share.php
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2015-06-26 16:01:16 +0200
committerBjörn Schießle <bjoern@schiessle.org>2015-06-26 16:01:16 +0200
commitb318b9cf17a1225e0b43f659ea279b54fd61bf07 (patch)
treed399ad75e97fb3f010a92181a09544c3f5353456 /core/ajax/share.php
parent796aae4402c1b71e7e44ee11ae985a8600b52513 (diff)
parent738b78f1b0eec61f4a55dd356d6b6a541ff56246 (diff)
downloadnextcloud-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.php2
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())));
}