Skip to content

Commit 7ef2e44

Browse files
committed
Check that event name is a string
1 parent cf2f4d9 commit 7ef2e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ SCServer.prototype.verifyHandshake = function (info, cb) {
544544
};
545545

546546
SCServer.prototype._isPrivateTransmittedEvent = function (event) {
547-
return !!event && event.indexOf('#') == 0;
547+
return typeof event == 'string' && event.indexOf('#') == 0;
548548
};
549549

550550
SCServer.prototype.verifyInboundEvent = function (socket, eventName, eventData, cb) {

0 commit comments

Comments
 (0)