Commits (5)
-
Rob Swindell authored
glob() by default, doesn't include 'dot files', so include the GLOB_PERIOD flag so that when deleting all files in a directory (e.g. node1/temp/*), any files starting with a dot will be deleted too.
23d36a63 -
Rob Swindell authored
The BadFilename text.dat is now a format string (prints the bad filename). Use the nice progress() display status while searching for duplicate filenames.
b417647b -
Rob Swindell authored
(prints the bad filename) - also, checkfname() is going to do the file.can (trashcan) checking, so no need here
fc34453e -
Rob Swindell authored8635d798
-
Rob Swindell authored
sbbs_t::checkfname() now checks the file.can too. new filedat.c functions: - safest_filename() - not currently used - illegal_filename() - returns true for a highly-suspicious (e.g. hack attempt) filename - allowed_filename() - returns true if the filename is good for upload (assumed to be already checked to be legal as well). Importantly, filenames beginning or ending in a '.' are now unallowed: - 'dot files' are hidden (by default) on *nix - files ending in a '.' are problematic on Windows
06fff14d
Showing