summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js3
-rw-r--r--core/js/tests/specs/shareSpec.js6
2 files changed, 6 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 877ef4856a3..b3533af4824 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -203,6 +203,9 @@ OC.Share={
tooltip += '@' + userDomain;
}
if (server) {
+ if (!userDomain) {
+ userDomain = '…';
+ }
tooltip += '@' + server;
}
diff --git a/core/js/tests/specs/shareSpec.js b/core/js/tests/specs/shareSpec.js
index f4500895464..7eb22261e10 100644
--- a/core/js/tests/specs/shareSpec.js
+++ b/core/js/tests/specs/shareSpec.js
@@ -702,17 +702,17 @@ describe('OC.Share tests', function() {
it('displays the user name part of a remote share owner', function() {
checkOwner(
'User One@someserver.com',
- 'User One',
+ 'User One@…',
'User One@someserver.com'
);
checkOwner(
'User One@someserver.com/',
- 'User One',
+ 'User One@…',
'User One@someserver.com'
);
checkOwner(
'User One@someserver.com/root/of/owncloud',
- 'User One',
+ 'User One@…',
'User One@someserver.com'
);
});