Commit d72f9124 authored by rswindell's avatar rswindell
Browse files

Moved illegal filename character array definition to sbbsdefs.h

parent 230e8027
......@@ -273,7 +273,7 @@ bool sbbs_t::checkfname(char *fname)
char str[256];
int c=0,d;
if(strcspn(fname,"\\/|<>+[]:=\";,%")!=strlen(fname)) {
if(strcspn(fname,ILLEGAL_FILENAME_CHARS)!=strlen(fname)) {
sprintf(str,"Suspicious filename attempt: '%s'",fname);
errorlog(str);
return(false); }
......
......@@ -75,8 +75,6 @@
#define FTP_VERSION "1.05"
#endif
#define ILLEGAL_FILENAME_CHARS "\\/|<>+[]:=\";,%"
#define STATUS_WFC "Listening"
#define BBS_VIRTUAL_PATH "bbs:/""/" /* this is actually bbs:<slash><slash> */
......
......@@ -64,6 +64,8 @@
#define FNOPEN_BUF_SIZE (2*1024)
#define ILLEGAL_FILENAME_CHARS "\\/|<>+[]:=\";,%"
#ifndef __FLAT__
#define __FLAT__ /* 32-bit "flat" memory model */
#endif
......
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