mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls
This commit is contained in:
parent
7a82afee70
commit
ebb8c2d528
1 changed files with 2 additions and 1 deletions
|
|
@ -246,6 +246,7 @@ class MimeTypes:
|
|||
except EnvironmentError:
|
||||
break
|
||||
else:
|
||||
if '\0' not in ctype:
|
||||
yield ctype
|
||||
i += 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue