Node.js based forum software built for the modern web
fix: only allow valid uids
Barış Soner Uşaklı00d8ce266378
diff --git a/src/socket.io/user/profile.js b/src/socket.io/user/profile.jsindex 0886b1e24c..4519d46bad 100644--- a/src/socket.io/user/profile.js+++ b/src/socket.io/user/profile.js@@ -162,7 +162,7 @@ module.exports = function (SocketUser) {throw new Error('[[error:invalid-uid]]');}- if (!data || !data.uid) {+ if (!data || !(parseInt(data.uid, 10) > 0)) {throw new Error('[[error:invalid-data]]');}