forked from CGM_Public/pretix_original
[SECURITY] Do not allow Pillow to parse EPS files
This commit is contained in:
@@ -1264,7 +1264,7 @@ class QuestionAnswer(models.Model):
|
||||
|
||||
@property
|
||||
def is_image(self):
|
||||
return any(self.file.name.lower().endswith(e) for e in ('.jpg', '.png', '.gif', '.tiff', '.bmp', '.jpeg'))
|
||||
return any(self.file.name.lower().endswith(e) for e in settings.FILE_UPLOAD_EXTENSIONS_QUESTION_IMAGE)
|
||||
|
||||
@property
|
||||
def file_name(self):
|
||||
|
||||
Reference in New Issue
Block a user