Merge pull request #316 from AttorneyOnline/chatpatches
Don't allow exploit to change background
This commit is contained in:
commit
0bff28cf53
@ -160,6 +160,7 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
|
|||||||
l_args.append(l_incoming_args[5].toString());
|
l_args.append(l_incoming_args[5].toString());
|
||||||
if (client.m_pos != l_incoming_args[5].toString()) {
|
if (client.m_pos != l_incoming_args[5].toString()) {
|
||||||
client.m_pos = l_incoming_args[5].toString();
|
client.m_pos = l_incoming_args[5].toString();
|
||||||
|
client.m_pos.replace("../", "").replace("..\\", "");
|
||||||
client.updateEvidenceList(client.getServer()->getAreaById(client.m_current_area));
|
client.updateEvidenceList(client.getServer()->getAreaById(client.m_current_area));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user