diff options
author | Felix Böhm <felixboehm@gmx.de> | 2015-07-10 14:58:32 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-14 15:33:12 +0200 |
commit | 824df7e22d8a1762599d694bbfc03283517e7813 (patch) | |
tree | f127eca610efca7c63f25125420018249af26db9 | |
parent | ab308d246a949a8a816ce8226bd14e8f15fe3b49 (diff) | |
download | nextcloud-server-824df7e22d8a1762599d694bbfc03283517e7813.tar.gz nextcloud-server-824df7e22d8a1762599d694bbfc03283517e7813.zip |
allow remote shares for users with email as usernames
-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( |