fix: use is_file_path_valid
instead of is_safe_path
#18316
Merged
8000
is_file_path_valid
instead of is_safe_path
#18316