fixed potential XSS in registration form

This commit is contained in:
psychobunny
2014-11-10 11:46:08 -05:00
parent c18de5cdd2
commit aa6137b9c3

View File

@@ -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() {