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
Pipeline #14572 passed with stage
in 44 seconds
......@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment