aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/security.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-06 07:57:05 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-06 07:57:05 -0500
commitfe4ffb860fcf211406861a726c64439435964f4c (patch)
treee4e1b67b130688a8cd5ac45358f95886fc74371d /mediagoblin/submit/security.py
parent2190ecde8d7ad77daf5e70c165bd36cc4d7e634d (diff)
downloadmediagoblin-fe4ffb860fcf211406861a726c64439435964f4c.tar.lz
mediagoblin-fe4ffb860fcf211406861a726c64439435964f4c.tar.xz
mediagoblin-fe4ffb860fcf211406861a726c64439435964f4c.zip
Added a comment to clarify that this shouldn't stay here.
Diffstat (limited to 'mediagoblin/submit/security.py')
-rw-r--r--mediagoblin/submit/security.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/submit/security.py b/mediagoblin/submit/security.py
index db4c860d..5a06a499 100644
--- a/mediagoblin/submit/security.py
+++ b/mediagoblin/submit/security.py
@@ -24,6 +24,8 @@ def check_filetype(posted_file):
if not guess_type(posted_file.filename) in ALLOWED:
return False
+ # TODO: This should be handled by the processing stage. We should
+ # handle error detection there.
try:
image = image_open(posted_file.file)
except IOError: