Skip to content
Snippets Groups Projects
Commit cf7f349d authored by EorlBruder's avatar EorlBruder
Browse files

Replace "/" in param-name with "_" during sanitizing

While sanitizing the params for filenames, this avoids creating
unwanted sub-dirs, when fields contain "/".

Fixes #17
parent de099eec
No related branches found
No related tags found
1 merge request!10Replace "/" in param-name with "_" during sanitizing
......@@ -83,6 +83,8 @@ def sanitize_recursive(value):
else:
if value and str(value).startswith("/"):
value = str(value)[1:]
if isinstance(value, str):
value = value.replace("/", "_")
return pathvalidate.sanitize_filepath(str(value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment