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

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