Skip to content
Snippets Groups Projects
Commit f44469e0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Include '?' and '*' in ILLEGAL_FILENAME_CHARS definition

parent 29cef0e7
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2354 passed
......@@ -50,7 +50,7 @@
#define FNOPEN_BUF_SIZE (2*1024)
#define MAX_FILENAME_LEN 64
#define ILLEGAL_FILENAME_CHARS "\\/|<>:\";,%"
#define ILLEGAL_FILENAME_CHARS "\\/|<>:\";,%?*"
#define SAFEST_FILENAME_CHARS "-._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define BIND_FAILURE_HELP "!Another application or service may be using this port"
......
......@@ -276,7 +276,7 @@ bool sbbs_t::upload(uint dirnum)
f.dir=curdirnum=dirnum;
bputs(text[Filename]);
if(getstr(fname, sizeof(fname) - 1, 0) < 1 || strchr(fname,'?') || strchr(fname,'*') || !checkfname(fname)) {
if(getstr(fname, sizeof(fname) - 1, 0) < 1 || !checkfname(fname)) {
if(fname[0])
bprintf(text[BadFilename], fname);
return(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment