mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user