mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: no user card for users with . or - in username
This commit is contained in:
parent
c845fcb154
commit
7431c6ac3b
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export default Ember.Controller.extend({
|
|||
|
||||
show(username, postId, target) {
|
||||
// XSS protection (should be encapsulated)
|
||||
username = username.toString().replace(/[^A-Za-z0-9_]/g, "");
|
||||
username = username.toString().replace(/[^A-Za-z0-9_\.\-]/g, "");
|
||||
|
||||
// Don't show on mobile
|
||||
if (Discourse.Mobile.mobileView) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue