Index: upload.py |
=================================================================== |
--- a/upload.py |
+++ b/upload.py |
@@ -1163,7 +1163,7 @@ |
mimetype = mimetypes.guess_type(filename)[0] |
if not mimetype: |
return False |
- return mimetype.startswith("image/") |
+ return mimetype.startswith("image/") and not mimetype.startswith("image/svg") |
def IsBinaryData(self, data): |
"""Returns true if data contains a null byte.""" |