Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls

This commit is contained in:
Steve Dower 2015-03-10 13:17:21 -07:00
parent 7a82afee70
commit ebb8c2d528
1 changed files with 2 additions and 1 deletions

View File

@ -246,6 +246,7 @@ class MimeTypes:
except EnvironmentError: except EnvironmentError:
break break
else: else:
if '\0' not in ctype:
yield ctype yield ctype
i += 1 i += 1