filename filtering for media files
No more spaces in filenames. The only allowed chars are a-z, A-Z, 0-9 and "-_.()". An exception are texture filenames, which may also have a prefix command like "<decal>" included. Also fixed some memory leaks in media download.
This commit is contained in:
@@ -150,8 +150,9 @@ enum
|
||||
#define FTXT_TOUPPER (1<<17)
|
||||
#define FTXT_TOLOWER (1<<18)
|
||||
#define FTXT_FILENAME (1<<19)
|
||||
#define FTXT_MAPNAME (1<<20)
|
||||
#define FTXT_CROPWHITE (1<<21)
|
||||
#define FTXT_ALLOWSLASH (1<<20)
|
||||
#define FTXT_MAPNAME (1<<21)
|
||||
#define FTXT_CROPWHITE (1<<22)
|
||||
// character classes
|
||||
#define FTXT__SERVDESC (FTXT_NOWHITE | FTXT_ALLOWBLANKS | FTXT_TABTOBLANK)
|
||||
#define FTXT__MAPMSG (FTXT_NOWHITE | FTXT_ALLOWBLANKS | FTXT_TABTOBLANK)
|
||||
@@ -169,4 +170,6 @@ enum
|
||||
#define FTXT__KICKBANREASON (FTXT_NOWHITE | FTXT_ALLOWBLANKS | FTXT_NOCOLOR | FTXT_TABTOBLANK)
|
||||
#define FTXT__FAVCATEGORY (FTXT_NOWHITE | FTXT_ALLOWBLANKS | FTXT_NOCOLOR)
|
||||
#define FTXT__GLOBALNAME (FTXT_NOWHITE | FTXT_NOCOLOR | FTXT_FILLBLANKS)
|
||||
#define FTXT__MEDIAFILENAME (FTXT_FILENAME)
|
||||
#define FTXT__MEDIAFILEPATH (FTXT_FILENAME | FTXT_ALLOWSLASH)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user