How can I safely handle an invalid or potentially malicious file path like "../../../../../etc/passwd"?
Additional Sources
portswigger.net
https://portswigger.net/web-security/file-path-traversal
Citation [3]
nodejs.org
https://nodejs.org/api/path.html
Citation [4]
docs.python.org
https://docs.python.org/3/library/pathlib.html
Citation [5]
docs.oracle.com
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/file/Path.html
Citation [6]
Filed under: