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[] = static const char *file_exts[] =
{ {
"cfg", // ban text files that don't make sense as resource
"lst", "cfg", "lst", "ini", "log",
"exe",
"vbs", // ban Windows code
"com", "exe", "vbs", "com", "bat",
"bat", "dll", "sys", "ps1",
"dll",
"ini", // ban common unix code
"log", // NOTE: in unix anything can be executed as long it has access flag
"sys", "so", "sh", "dylib",
// ban mobile archives
"apk", "ipa",
}; };
#ifdef _DEBUG #ifdef _DEBUG