Skip to content
Snippets Groups Projects
Commit 695af190 authored by Roeland Douma's avatar Roeland Douma
Browse files

Merge pull request #17565 from owncloud/fix/remote_share

allow remote shares for users with email as usernames
parents e18d0e26 c9917e4c
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment