diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-07-02 16:17:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 21:17:06 +0000 |
commit | 773bbb181506856ffda95496ab60c1c9603f1f71 (patch) | |
tree | 145e03da7a5ec63fa9148fa606877cf9d56929c1 | |
parent | cd68258225dc813c74fbda4c4fda0c736d6fda10 (diff) |
[core] Fix `--compat-opt allow-unsafe-ext` (#10336)
Fixes bug in 5ce582448ececb8d9c30c8c31f58330090ced03a
Authored by: bashonly, rdamas
Co-authored-by: Robert Damas <robert.damas@byom.de>
-rw-r--r-- | yt_dlp/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |