Skip to content
Snippets Groups Projects
Commit 34ca0411 authored by mcmlxxix's avatar mcmlxxix
Browse files

strip some non-display characters from Message objects on creation

parent a93922ff
No related branches found
No related tags found
No related merge requests found
...@@ -299,6 +299,7 @@ function JSONChat(usernum,jsonclient,host,port) { ...@@ -299,6 +299,7 @@ function JSONChat(usernum,jsonclient,host,port) {
this.nick = nick; this.nick = nick;
this.str = str; this.str = str;
this.time = time; this.time = time;
this.str = this.str.replace(/[\f\r\n\x14\x15\x10\b]/g,'');
} }
/* retrieve user list */ /* retrieve user list */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment