]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow avatars for full numeric users
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 29 Mar 2017 11:39:48 +0000 (13:39 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 29 Mar 2017 11:39:48 +0000 (13:39 +0200)
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>
core/js/jquery.avatar.js

index 1abe70b79ea5f67fd7d695b170cbb4baeda5725b..703bd9fd7ddf9ba5f00d00eea8517be084111b7a 100644 (file)
@@ -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();