aboutsummaryrefslogtreecommitdiff
path: root/app/views/packages/screenshots.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-07-29 22:21:56 +0100
committerrubenwardy <rw@rubenwardy.com>2019-07-29 22:21:56 +0100
commitb3b1e421f2d31b0d09e5470599c871d0b9cd71e2 (patch)
tree16c1b618bdaaf8906317753f9d2e2115048d288b /app/views/packages/screenshots.py
parent60483ef542662af2dc4d87fd6b1a78e39f2260b3 (diff)
downloadcheatdb-b3b1e421f2d31b0d09e5470599c871d0b9cd71e2.tar.xz
Check that uploaded images are valid images
Diffstat (limited to 'app/views/packages/screenshots.py')
-rw-r--r--app/views/packages/screenshots.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/packages/screenshots.py b/app/views/packages/screenshots.py
index cba7030..dbb002b 100644
--- a/app/views/packages/screenshots.py
+++ b/app/views/packages/screenshots.py
@@ -49,7 +49,7 @@ def create_screenshot_page(package, id=None):
# Initial form class from post data and default data
form = CreateScreenshotForm()
if request.method == "POST" and form.validate():
- uploadedPath = doFileUpload(form.fileUpload.data, ["png", "jpg", "jpeg"],
+ uploadedPath = doFileUpload(form.fileUpload.data, "image",
"a PNG or JPG image file")
if uploadedPath is not None:
ss = PackageScreenshot()