diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-29 13:39:48 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-29 13:39:48 +0200 |
commit | 54c68519ce1cab9baaf86a29c7172811767d97c4 (patch) | |
tree | b27fafbc4d64197cb9f99ddf178cfca4a6ce009a /core/js/jquery.avatar.js | |
parent | 626d03e3d47994364500bd6cd5dd9a029b862fb7 (diff) | |
download | nextcloud-server-54c68519ce1cab9baaf86a29c7172811767d97c4.tar.gz nextcloud-server-54c68519ce1cab9baaf86a29c7172811767d97c4.zip |
Allow avatars for full numeric users
Fixes #4087
Because of fancy javascript if a full numeric uid was used javascript
would convert this to an int. Now we just convert everything to a string
first.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js/jquery.avatar.js')
-rw-r--r-- | core/js/jquery.avatar.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 1abe70b79ea..703bd9fd7dd 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -48,6 +48,9 @@ (function ($) { $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) { + user = String(user); + displayname = String(displayname); + if (typeof(size) === 'undefined') { if (this.height() > 0) { size = this.height(); |