mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 03:23:02 +00:00
[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>
This commit is contained in:
parent
cd68258225
commit
773bbb1815
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ def report_deprecation(val, old, new=None):
|
||||||
warnings.append(
|
warnings.append(
|
||||||
'Using allow-unsafe-ext opens you up to potential attacks. '
|
'Using allow-unsafe-ext opens you up to potential attacks. '
|
||||||
'Use with great care!')
|
'Use with great care!')
|
||||||
_UnsafeExtensionError.sanitize_extension = lambda x: x
|
_UnsafeExtensionError.sanitize_extension = lambda x, prepend=False: x
|
||||||
|
|
||||||
return warnings, deprecation_warnings
|
return warnings, deprecation_warnings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue