diff --git a/core/ajax/share.php b/core/ajax/share.php
index d8aec9c654293994d3f327d5e6127408b8ff379c..95219ce879119e91e8a19d3352ec5c46b9284973 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(