[7189] Prevent use wrong security levels (>= SEC_CONSOLE)

This commit is contained in:
VladimirMangos 2009-01-26 22:03:36 +03:00
parent d4ce99dfa2
commit ad03d3c73b
2 changed files with 15 additions and 12 deletions

View file

@ -891,6 +891,9 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
id = fields[0].GetUInt32 ();
security = fields[1].GetUInt16 ();
if(security > SEC_ADMINISTRATOR) // prevent invalid security settings in DB
security = SEC_ADMINISTRATOR;
K.SetHexStr (fields[2].GetString ());
time_t mutetime = time_t (fields[9].GetUInt64 ());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7188"
#define REVISION_NR "7189"
#endif // __REVISION_NR_H__