Kaynağa Gözat

escape special char in avatar uri

isundil 6 yıl önce
ebeveyn
işleme
17917dc8ef
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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() {