diff --git a/core/ajax/share.php b/core/ajax/share.php
index 6cf5eb00cb6c0c42515f6c280a723dd21ebc5070..69b84564ab1fb3eec3e0d176b1a4e138bd267870 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(