2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-15 13:00:45 +01:00

engine: common: ban few more executable types for COM_IsSafeFileToDownload

This commit is contained in:
Alibek Omarov 2024-05-31 00:43:20 +03:00
parent 8ee430eda2
commit 27f7d2c8d2

View File

@ -25,16 +25,19 @@ GNU General Public License for more details.
static const char *file_exts[] =
{
"cfg",
"lst",
"exe",
"vbs",
"com",
"bat",
"dll",
"ini",
"log",
"sys",
// ban text files that don't make sense as resource
"cfg", "lst", "ini", "log",
// ban Windows code
"exe", "vbs", "com", "bat",
"dll", "sys", "ps1",
// ban common unix code
// NOTE: in unix anything can be executed as long it has access flag
"so", "sh", "dylib",
// ban mobile archives
"apk", "ipa",
};
#ifdef _DEBUG