core: Validate file names read from directory variants
In a future where we pull data from remote servers, we don't want to allow path uplinks.
This commit is contained in:
1 parent
4a26be1bef
commit
aa865bbb83
3 files changed
+31
No files matched your search
@@ -45,6 +45,9 @@ void ot_util_fatal_gerror (GError *error) G_GNUC_NORETURN;
|
||||
|
||||
gboolean ot_util_filename_has_dotdot (const char *path);
|
||||
|
||||
gboolean ot_util_validate_file_name (const char *name,
|
||||
GError **error);
|
||||
|
||||
GPtrArray *ot_util_sort_filenames_by_component_length (GPtrArray *files);
|
||||
|
||||
GPtrArray* ot_util_path_split (const char *path);
|
||||
|
||||
Reference in new issue
Block a user