FIX: user card can't expand when the username is number

This commit is contained in:
Erick Guan 2014-12-29 19:15:58 +08:00
parent b48f04e772
commit 489feac121
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export default ObjectController.extend({
show: function(username, target) {
// XSS protection (should be encapsulated)
username = username.replace(/[^A-Za-z0-9_]/g, "");
username = username.toString().replace(/[^A-Za-z0-9_]/g, "");
var url = "/users/" + username;
// Don't show on mobile