diff --git a/src/sbbs3/upload.cpp b/src/sbbs3/upload.cpp index b30e3f594c27438946bebadc0c230eef2510445c..3c96478b5cd1f09429315d6b9c2ddab1932ba6dc 100644 --- a/src/sbbs3/upload.cpp +++ b/src/sbbs3/upload.cpp @@ -55,7 +55,7 @@ bool sbbs_t::uploadfile(file_t* f) f->hdr.when_written.time = (uint32_t)fdate(path); char* fext = getfext(f->name); for(i=0;i<cfg.total_ftests;i++) - if(cfg.ftest[i]->ext[0]=='*' || (fext != NULL && stricmp(fext, cfg.ftest[i]->ext) == 0)) { + if(cfg.ftest[i]->ext[0]=='*' || (fext != NULL && stricmp(fext + 1, cfg.ftest[i]->ext) == 0)) { if(!chk_ar(cfg.ftest[i]->ar,&useron,&client)) continue; attr(LIGHTGRAY);