aboutsummaryrefslogtreecommitdiff
path: root/libweb
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-23 00:01:41 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-23 00:01:41 +0100
commitdaffea4660560f7420e57ecc40b29f6ef3c46f98 (patch)
treee5c9e52ac7e39dc5e0b4944bc46621b383914c15 /libweb
parent0854bc0030c145bebc9fcbc24ea9a4f3a7a67b3a (diff)
downloadslcl-daffea4660560f7420e57ecc40b29f6ef3c46f98.tar.gz
main.c: Treat non-existing upload dir as non-fatal
When a user attempts to upload a file into a non-existing directory, slcl would not check whether the directory exists. Then, rename(3) would fail and slcl would treat this as a fatal error, effectively closing itself. Since this is an example of ill-formed user input, it must be treated as a non-fatal error, and instead slcl should return a bad request page.
Diffstat (limited to 'libweb')
0 files changed, 0 insertions, 0 deletions