Files
cpp-httplib/example
Mario Limonciello 76b54e7de4 Sanitize uploaded filenames in upload example to prevent path traversal
The upload example wrote each uploaded file using the filename supplied
verbatim in the multipart Content-Disposition header. A client could set
that filename to an absolute path or one containing "../" components and
cause the server to create or overwrite files outside the working
directory.

Reduce each client-supplied filename to its base name and reject the
request with 400 Bad Request if the result is empty, ".", "..", or
still contains a path separator (including colon for Windows drive
letters).
2026-07-27 10:56:49 -05:00
..
2025-06-24 17:37:30 -04:00
2019-05-07 16:41:33 -04:00
2026-04-11 20:54:06 -04:00
2024-11-16 11:14:13 -05:00
2025-12-31 22:18:11 -05:00
2025-12-31 22:18:11 -05:00
2025-12-31 22:18:11 -05:00
2025-12-31 22:18:11 -05:00
2024-11-16 11:14:13 -05:00
2025-12-31 22:18:11 -05:00
2025-12-31 22:18:11 -05:00
2025-12-31 22:18:11 -05:00
2025-12-31 22:18:11 -05:00
2025-10-27 18:10:52 -04:00
2022-08-06 14:43:56 -04:00