Blame SOURCES/mailman-CVE-2020-12137.patch

216301
=== modified file 'Mailman/Handlers/Scrubber.py'
216301
--- Mailman/Handlers/Scrubber.py	2018-06-17 23:47:34 +0000
216301
+++ Mailman/Handlers/Scrubber.py	2018-11-10 18:57:54 +0000
216301
@@ -87,6 +87,9 @@
216301
     all = guess_all_extensions(ctype, strict=False)
216301
     if ext in all:
216301
         return ext
216301
+    if ctype.lower == 'application/octet-stream':
216301
+        # For this type, all[0] is '.obj'. '.bin' is better.
216301
+        return '.bin'
216301
     return all and all[0]
216301
 
216301
 
216301