A feature-rich command-line audio/video downloader
[core] Fix `--compat-opt allow-unsafe-ext` (#10336)
bashonly773bbb181506
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.pyindex f88f15d70c..0e48569e33 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: xreturn warnings, deprecation_warnings