summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorRoeland Douma <unix@rullzer.com>2015-07-13 21:22:09 +0200
committerRoeland Douma <unix@rullzer.com>2015-07-13 21:22:09 +0200
commit695af190f63c2c65fd0fd9779d75f7201f3cb780 (patch)
treea02b97946fddf7238e46a92079092e17383ace1d /core/ajax
parente18d0e26f6b5fbef555acacb7d1ec7adbff1c50e (diff)
parentc9917e4cd69a28038645e4eaab49712692be5a37 (diff)
downloadnextcloud-server-695af190f63c2c65fd0fd9779d75f7201f3cb780.tar.gz
nextcloud-server-695af190f63c2c65fd0fd9779d75f7201f3cb780.zip
Merge pull request #17565 from owncloud/fix/remote_share
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 6cf5eb00cb6..69b84564ab1 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -353,7 +353,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(