[core] Fix `--compat-opt allow-unsafe-ext` (#10336)

Fixes bug in 5ce582448e

Authored by: bashonly, rdamas

Co-authored-by: Robert Damas <robert.damas@byom.de>
pull/10330/head
bashonly 4 months ago committed by GitHub
parent cd68258225
commit 773bbb1815
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -599,7 +599,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: x
_UnsafeExtensionError.sanitize_extension = lambda x, prepend=False: x
return warnings, deprecation_warnings

Loading…
Cancel
Save