Fixed broadcast feature.
Ylian Saint-Hilaire committed
Feb 16, 2019 at 13:02 UTC
46dd1c666bd8ba4b61ea0b42b5dc23e56d320445
1 file changed
+1
-1
meshuser.js
+1
-1
@@ -646,7 +646,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
646
{
647
// Broadcast a message to all currently connected users.
648
if ((user.siteadmin & 2) == 0) break;
649
- if (obj.common.validateUsername(command.msg, 1, 256) == false) break; // Notification message is between 1 and 256 characters
649
+ if (obj.common.validateString(command.msg, 1, 256) == false) break; // Notification message is between 1 and 256 characters
650
651
// Create the notification message
652
var notification = { "action": "msg", "type": "notify", "value": command.msg };