mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
Handle a special case where the none marker exists in a way which could create an absolute path (#8060)
This commit is contained in:
parent
0d96cd03d5
commit
ad23cce2e6
2 changed files with 14 additions and 3 deletions
|
|
@ -111,6 +111,7 @@ def generate_filename(
|
|||
rendered_filename = rendered_filename.replace("/-none-/", "/")
|
||||
rendered_filename = rendered_filename.replace(" -none-", "")
|
||||
rendered_filename = rendered_filename.replace("-none-", "")
|
||||
rendered_filename = rendered_filename.strip(os.sep)
|
||||
|
||||
rendered_filename = rendered_filename.replace(
|
||||
"-none-",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue