Files
freeswitch/tests
Dmitry Verenitsin 68b340f5f5 [core] Confine MSRP remote file-selector name to the receive directory
Without an explicit path, `msrp_recv_file_function()` joined the
`sip_msrp_file_name` channel variable, taken from the remote SDP
`a=file-selector` name, onto the base directory unchanged, so a name
with directory components opened a file outside it. Reduce the name
to its last path component with `switch_cut_path()` and reject an
empty name, `.` and `..`.

`test_switch_cut_path_strips_directory_components` covers the path
reduction the receive path relies on.
2026-11-18 22:36:36 +05:00
..