Explorar o código

escape special char in avatar uri

isundil %!s(int64=6) %!d(string=hai) anos
pai
achega
17917dc8ef
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      srv/src/chatter.js

+ 2 - 2
srv/src/chatter.js

@@ -73,11 +73,11 @@ Chatter.prototype.update = function(userData, t) {
 };
 
 Chatter.prototype.getSmallIcon = function() {
-    return "api/avatar?user=" +this.id;
+    return "api/avatar?user=" +encodeURIComponent(this.id);
 };
 
 Chatter.prototype.getLargeIcon = function() {
-    return "api/avatar?size=l&user=" +this.id;
+    return "api/avatar?size=l&user=" +encodeURIComponent(this.id);
 };
 
 Chatter.prototype.getName = function() {