allow remote shares for users with email as usernames

This commit is contained in:
Felix Böhm 2015-07-10 14:58:32 +02:00
parent 1075914f8a
commit c9917e4cd6
1 changed files with 1 additions and 1 deletions

View File

@ -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(