mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 11:42:10 +02:00
fixed potential XSS in registration form
This commit is contained in:
@@ -146,7 +146,7 @@ define('forum/register', function() {
|
||||
});
|
||||
|
||||
username.on('keyup', function() {
|
||||
$('#yourUsername').html(this.value.length > 0 ? this.value : 'username');
|
||||
$('#yourUsername').text(this.value.length > 0 ? this.value : 'username');
|
||||
});
|
||||
|
||||
username.on('blur', function() {
|
||||
|
||||
Reference in New Issue
Block a user