Skip to content

Commit

Permalink
Fixed a bug when negative UID is supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpgonCz committed Jun 27, 2016
1 parent ca4fda8 commit 3556dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socketserver/socketserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,7 @@ var SocketServer = function(server){
*/

//Check for props
if (!(data.data.uid = +data.data.uid)){
if (!(data.data.uid = +data.data.uid) || uid < 0){
returnObj.data = {
error: 'WrongProps'
};
Expand Down

0 comments on commit 3556dbb

Please sign in to comment.