Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sanitizePath Function: This function checks if the file path is valid and safely contained within an allowed directory. It converts the path to an absolute path, resolves any symlinks, and checks if the path starts with the specified allowed directory.
- Loading branch information