Don't allow exploit to change background
This commit is contained in:
parent
abf8aea185
commit
2459aa5401
@ -159,6 +159,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("../", "");
|
||||||
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