From b40428f5aa7e0a130ddd2f6a40ad1ce30437a766 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 5 Apr 2023 16:33:36 +0000 Subject: [PATCH] Remove custom resolution This can be abused to fill up storage --- gallery/utils/generate_image.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gallery/utils/generate_image.py b/gallery/utils/generate_image.py index 788b0ca..e14acfb 100644 --- a/gallery/utils/generate_image.py +++ b/gallery/utils/generate_image.py @@ -40,8 +40,6 @@ def generate_thumbnail(file_name, resolution, ext=None): res_x, res_y = (350, 350) elif resolution in ['icon', 'favicon']: res_x, res_y = (10, 10) - elif len(resolution.split('x')) == 2: - res_x, res_y = resolution.split('x') else: return None