0001-misc-don-t-crash-on-uploaded-files-with-an-unknonw-m.patch
wcs/qommon/form.py | ||
---|---|---|
701 | 701 |
return False |
702 | 702 | |
703 | 703 |
filetype = (mimetypes.guess_type(temp.get('orig_filename', '')) or [''])[0] |
704 |
if not filetype: |
|
705 |
return False |
|
706 | ||
704 | 707 |
if filetype == 'application/pdf': |
705 | 708 |
return HAS_GM |
706 | 709 | |
707 |
- |