Skip to content

Node.js based forum software built for the modern web

fixed potential XSS in registration form

psychobunnyaa6137b9c36a
diff --git a/public/src/client/register.js b/public/src/client/register.js
index a332aa7c6f..6780faae59 100644
--- a/public/src/client/register.js
+++ b/public/src/client/register.js
@@ -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() {