소스 검색

escape special char in avatar uri

isundil 6 년 전
부모
커밋
17917dc8ef
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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() {