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