mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Strip unicode null from deviceNames
Not sure how or why but sometimes deviceNames arrive on the server containing a null char. // FREEBIE
This commit is contained in:
parent
43ca465eb9
commit
9deaa95e8c
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@
|
|||
this.$('#sync').click(function(e) {
|
||||
e.stopPropagation();
|
||||
var name = this.$('#device-name').val();
|
||||
name = name.replace(/\0/g,''); // strip unicode null
|
||||
if (name.trim().length === 0) {
|
||||
this.$('#device-name').focus();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue