You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yt-dlp/test
Jaime Marquínez Ferrándiz e37afbe0b8 [YoutubeDL] urlopen: disable the 'file:' protocol (#8227)
If someone is running youtube-dl on a server to deliver files, the user could input 'file:///some/important/file' and youtube-dl would save that file as a video giving access to sensitive information to the user.
'file:' urls can be filtered, but the user can use an URL to a crafted m3u8 manifest like:

    #EXTM3U
    #EXT-X-MEDIA-SEQUENCE:0
    #EXTINF:10.0
    file:///etc/passwd
    #EXT-X-ENDLIST

With this patch 'file:' URLs raise URLError like for unknown protocols.
9 years ago
..
swftests [swfinterp] Add more builtins and improve static variables 10 years ago
__init__.py Add support for single-test tox runs 11 years ago
helper.py [test/helper] Fix style 9 years ago
parameters.json Remove the --max-quality option 10 years ago
test_InfoExtractor.py [extractor/common] Allow angle brackets in attributes in _og_regexes (#7215) 9 years ago
test_YoutubeDL.py [YoutubeDL] urlopen: disable the 'file:' protocol (#8227) 9 years ago
test_aes.py [test/aes] Fix on python 3.3 and higher 10 years ago
test_age_restriction.py [test_age_restriction] remove misbehaving test 10 years ago
test_all_urls.py [test/test_all_urls] Update pbs extractor name 9 years ago
test_cache.py [test_cache] Add a dot in the file name 10 years ago
test_compat.py [compat] compat_etree_fromstring: also decode the text attribute 9 years ago
test_download.py [test/test_download] Use extract_flat = 'in_playlist' for playlist items 9 years ago
test_execution.py [test_execution] Fix test under python 2 @ windows 10 years ago
test_http.py [test/http] Add test for proxy support 10 years ago
test_jsinterp.py [jsinterp] Support alternative function definition form 9 years ago
test_netrc.py Make sure netrc works for all extractors with login support 10 years ago
test_postprocessors.py [metadatafromtitle] Some improvements and cleanup 10 years ago
test_subtitles.py [test_subtitles] remove BlipTV test 9 years ago
test_swfinterp.py PEP8: W503 10 years ago
test_unicode_literals.py [test/unicode_literals] Don't look into the .git and .tox directories 10 years ago
test_utils.py [test_utils] Add tests for encode_compat_str 9 years ago
test_write_annotations.py Fix typos 9 years ago
test_youtube_lists.py [test_youtube_lists] Add test flat playlist entries' titles 9 years ago
test_youtube_signature.py [jsinterp] Disable comment support 10 years ago
testcert.pem Add a test for --no-check-certificate 10 years ago