From 9deaa95e8c6d2a372e71b62559963042fd30ca9b Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 1 Sep 2016 13:15:04 -0700 Subject: [PATCH] Strip unicode null from deviceNames Not sure how or why but sometimes deviceNames arrive on the server containing a null char. // FREEBIE --- js/views/install_view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/views/install_view.js b/js/views/install_view.js index 45bbcd2af..491583180 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -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;