How to prevent path escapes in rust?
⚓ Rust 📅 2025-07-31 👤 surdeus 👁️ 13In axum i am making it so a request is sent to the backend for a list of files at a given directory, how do i prevent escapes? This is for a filebrowser website im making (self hosted). So I want to confine the filebrowser view to a certain directory, this means the frontend sending requests to the backend for a specific path, however with .. and other forms of escapes, I want to prevent escapes.
1 post - 1 participant
🏷️ Rust_feed