NetPlay: Check file names when receiving GCI folder

This commit is contained in:
Techjar
2021-05-28 07:11:52 -04:00
parent b3a414ea9d
commit 1377f31cf8
3 changed files with 19 additions and 4 deletions

View File

@ -43,4 +43,6 @@ std::string EscapeFileName(const std::string& filename);
std::string EscapePath(const std::string& path);
// Reverses escaping done by EscapeFileName
std::string UnescapeFileName(const std::string& filename);
// Tests for a file name being "safe" as per the escaping defined in EscapeFileName
bool IsFileNameSafe(const std::string_view filename);
} // namespace Common