From 7b47c24f5ce243154c7cf753dd49fb00a2741960 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 16 Feb 2019 13:02:22 -0800 Subject: [PATCH] Fixed broadcast feature. --- meshuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshuser.js b/meshuser.js index 7e22a650..0e7391a3 100644 --- a/meshuser.js +++ b/meshuser.js @@ -646,7 +646,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use { // Broadcast a message to all currently connected users. if ((user.siteadmin & 2) == 0) break; - if (obj.common.validateUsername(command.msg, 1, 256) == false) break; // Notification message is between 1 and 256 characters + if (obj.common.validateString(command.msg, 1, 256) == false) break; // Notification message is between 1 and 256 characters // Create the notification message var notification = { "action": "msg", "type": "notify", "value": command.msg };