- Jun 06, 2021
-
-
Rob Swindell authored
Don't need no stinking pre/appended white-space in our filenames!
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
For info, see: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
-
Rob Swindell authored
5 options: - Safest Subset - Most ASCII, Excluding Spaces (the default) - Most ASCII, Including Spaces - Most CP437, Excluding Spaces - Most CP437, Including Spaces
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
Fix FreeBSD build error: dirwrap.c:760:13: error: use of undeclared identifier 'GLOB_PERIOD' Not sure how glob() on FreeBSD treats "dot files" or how to control that.
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
-
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
-
Rob Swindell authored
-
Rob Swindell authored
(prints the bad filename) - also, checkfname() is going to do the file.can (trashcan) checking, so no need here
-
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.
-
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.
-
Deucе authored
This fixes an issue in TypeClass lookups (such as used by reverse())
-
- Jun 05, 2021
-
-
Rob Swindell authored
The command to delete and remove all messages is changed from 'd' to 'D'. This operation is not reversable. New commands are 'd' (flag all msgs for deletion) and 'u' (undelete all msgs).
-
Rob Swindell authored
This fixes issue #269 (NTFS Alternate Data Stream vulnerability) and other potential pathname issues on Windows involving colons. There are other illegal filename characters on Windows (e.g. <>|"?*), but filenames with these characters aren't expected to pass the later stat() test, so should fail with a 404 error.
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
The requested path was being URL-decoded with unescape(), but that function does a '+' to ' ' (space) conversion. The '+' to space decoding is supposed to occur for the "query" portion of the URL only, not the "path" portion. Use the new hex_decode() function instead of unescape() for "path" decoding.
-
Rob Swindell authored
These functions can be used for "percent encode/decode" or any other 2-hex-digit encoding/decoding with a single escape character.
-
- Jun 03, 2021
-
-
Deucе authored
1) setfont() after loading fonts 2) In X11 mode, don't translate ASCII characters from unicode... this was causing non-ASCII characters to be translated twice.
-
Deucе authored
-
Deucе authored
The previous tests to detect RGB8 appear to have been insufficient. This may have resulted in various artifacts such as transparency with some drivers on some hardware in X11 mode.
-
- Jun 01, 2021
- May 31, 2021
-
-
Randy Sommerfeld authored
-
Randy Sommerfeld authored
-
Rob Swindell authored
- Don't read/load extended descriptions - Don't query each file size (use file cost from database)
-
Rob Swindell authored
Cosmetic only.
-
Rob Swindell authored
msgs.ssjs line 6: TypeError: msgbase is undefined Instead, just display an error to the user/browser (assuming there is one).
-
Randy Sommerfeld authored
-
- May 30, 2021
-
-
Rob Swindell authored
"msg.ssjs line 42: Error: Error -1 reading user number" Fixed an errant semicolon in the process. (15 year old minor bug)
-
Rob Swindell authored
-
Rob Swindell authored
Use the file size estimates rather than actual byte values (to keep lines < 80 chars). Use file name file summary/description is blank or doesn't exist.
-
Rob Swindell authored
-
Rob Swindell authored
When executing area manager requests that alter the area file, the temp area file created (with mkstemp) had mode 0600 (owner read/write only). The sysop very possibly had different permission flags they want to keep for their area file, so copy the mode flags from the original area file to the temp/new area file.
-