engine: common: ban few more executable types for COM_IsSafeFileToDownload
This commit is contained in:
parent
8ee430eda2
commit
27f7d2c8d2
1 changed files with 13 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue