mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-10 16:24:49 +00:00
Set default focal point key in filenames to 'focus-none'
This prevents filenames being generated with '..'
This commit is contained in:
parent
1801412693
commit
dd7d4b671e
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ class Filter(models.Model):
|
|||
if focal_point is not None:
|
||||
focal_point_key = "focus-" + focal_point.get_key()
|
||||
else:
|
||||
focal_point_key = ""
|
||||
focal_point_key = "focus-none"
|
||||
|
||||
input_filename_parts = os.path.basename(input_file.name).split('.')
|
||||
filename_without_extension = '.'.join(input_filename_parts[:-1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue