diff options
author | Roeland Douma <unix@rullzer.com> | 2015-07-13 21:22:09 +0200 |
---|---|---|
committer | Roeland Douma <unix@rullzer.com> | 2015-07-13 21:22:09 +0200 |
commit | 695af190f63c2c65fd0fd9779d75f7201f3cb780 (patch) | |
tree | a02b97946fddf7238e46a92079092e17383ace1d /core/ajax | |
parent | e18d0e26f6b5fbef555acacb7d1ec7adbff1c50e (diff) | |
parent | c9917e4cd69a28038645e4eaab49712692be5a37 (diff) | |
download | nextcloud-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.php | 2 |
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( |