aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorFelix Böhm <felixboehm@gmx.de>2015-07-10 14:58:32 +0200
committerFelix Böhm <felixboehm@gmx.de>2015-07-10 14:58:32 +0200
commitc9917e4cd69a28038645e4eaab49712692be5a37 (patch)
treeea587685ed2f3e05e22c8b5c75611a9fbd586b3d /core/ajax
parent1075914f8ab8f5f4c20ab7f0b9ce35e9a9e2ffe1 (diff)
downloadnextcloud-server-c9917e4cd69a28038645e4eaab49712692be5a37.tar.gz
nextcloud-server-c9917e4cd69a28038645e4eaab49712692be5a37.zip
allow remote shares for users with email as usernames
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index d8aec9c6542..95219ce8791 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -296,7 +296,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
// allow user to add unknown remote addresses for server-to-server share
$backend = \OCP\Share::getBackend((string)$_GET['itemType']);
if ($backend->isShareTypeAllowed(\OCP\Share::SHARE_TYPE_REMOTE)) {
- if (substr_count((string)$_GET['search'], '@') === 1) {
+ if (substr_count((string)$_GET['search'], '@') >= 1) {
$shareWith[] = array(
'label' => (string)$_GET['search'],
'value' => array(