Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit f44469e0 authored by Rob Swindell's avatar Rob Swindell 💬

Include '?' and '*' in ILLEGAL_FILENAME_CHARS definition

parent 29cef0e7
Pipeline #2354 passed with stage
in 8 minutes and 53 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment