Permalink
Browse files

bug fix

  • Loading branch information...
1 parent 4216037 commit 4ac83da96d1aab3f919e822306ae20af44e6feb2 Binux committed Mar 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 static/js/common.js
View
@@ -14,7 +14,7 @@ function thunder_url_fix(lixian_url, filename) {
var tid = lixian_url.match(/&tid=([^&]+)/)[1];
var fid = lixian_url.match(/fid=([^&]+)/)[1];
if (fid && tid)
- return ThunderEncode("http://sendfile.vip.xunlei.com/"+filename+"?fid="+fid+"&mid=666&threshold=150&tid="+tid);
+ return ThunderEncode("http://sendfile.vip.xunlei.com/"+encodeURIComponent(filename)+"?fid="+fid+"&mid=666&threshold=150&tid="+tid);
return "";
}

0 comments on commit 4ac83da

Please sign in to comment.