mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
NetPlay: Check file names when receiving GCI folder
This commit is contained in:
@ -905,7 +905,8 @@ unsigned int NetPlayClient::OnData(sf::Packet& packet)
|
||||
std::string file_name;
|
||||
packet >> file_name;
|
||||
|
||||
if (!DecompressPacketIntoFile(packet, path + DIR_SEP + file_name))
|
||||
if (!Common::IsFileNameSafe(file_name) ||
|
||||
!DecompressPacketIntoFile(packet, path + DIR_SEP + file_name))
|
||||
{
|
||||
SyncSaveDataResponse(false);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user