Using an invalid user_id is the better way to force null bug
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
// null is the new demo/flash
|
||||
|
||||
if (ssid_sessions[socket.ssid]) {
|
||||
if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
|
||||
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store) {
|
||||
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store.user_id != null) {
|
||||
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store.user_id >= 0)
|
||||
ssid_sessions[socket.ssid].switchUserID(null);
|
||||
ssid_sessions[socket.ssid].switchUserID(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user