Fix allow-unsafe-ext compat option (#16920)

Fix bug in e578e265f7

Closes #16919
Authored by: bashonly
This commit is contained in:
bashonly
2026-06-10 23:00:05 +00:00
committed by GitHub
parent a541df1ea5
commit e47691215f
3 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -619,7 +619,7 @@ def validate_options(opts):
warnings.append(
'Using allow-unsafe-ext opens you up to potential attacks. '
'Use with great care!')
_UnsafeExtensionError.sanitize_extension = lambda x, prepend=False: x
_UnsafeExtensionError._enabled = False
return warnings, deprecation_warnings