Don't allow exploit to change background

This commit is contained in:
scatterflower 2022-07-10 10:25:19 -05:00
parent abf8aea185
commit 2459aa5401

View File

@ -159,6 +159,7 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
l_args.append(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.replace("../", "");
client.updateEvidenceList(client.getServer()->getAreaById(client.m_current_area));
}