From 773bbb181506856ffda95496ab60c1c9603f1f71 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:17:06 -0500 Subject: [PATCH] [core] Fix `--compat-opt allow-unsafe-ext` (#10336) Fixes bug in 5ce582448ececb8d9c30c8c31f58330090ced03a Authored by: bashonly, rdamas Co-authored-by: Robert Damas --- yt_dlp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index f88f15d70..0e48569e3 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -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