summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Böhm <felixboehm@gmx.de>2015-07-10 14:58:32 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-14 15:33:12 +0200
commit824df7e22d8a1762599d694bbfc03283517e7813 (patch)
treef127eca610efca7c63f25125420018249af26db9
parentab308d246a949a8a816ce8226bd14e8f15fe3b49 (diff)
downloadnextcloud-server-824df7e22d8a1762599d694bbfc03283517e7813.tar.gz
nextcloud-server-824df7e22d8a1762599d694bbfc03283517e7813.zip
allow remote shares for users with email as usernames
-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(