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:
parent
8ee430eda2
commit
27f7d2c8d2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user