youtube-dl/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.
2016-01-14 00:24:04 +01:00
..
swftests
__init__.py
helper.py
parameters.json Remove the --max-quality option 2015-04-25 11:59:54 +02:00
test_aes.py
test_age_restriction.py [test_age_restriction] remove misbehaving test 2015-01-08 18:03:29 +01:00
test_all_urls.py
test_cache.py [test_cache] Add a dot in the file name 2014-09-04 04:51:52 +02:00
test_compat.py
test_download.py
test_execution.py
test_http.py
test_InfoExtractor.py [extractor/common] Allow angle brackets in attributes in _og_regexes (#7215) 2015-10-18 09:11:02 +06:00
test_jsinterp.py
test_netrc.py
test_postprocessors.py
test_subtitles.py
test_swfinterp.py
test_unicode_literals.py
test_utils.py
test_write_annotations.py Fix typos 2016-01-10 17:24:28 +01:00
test_youtube_lists.py
test_youtube_signature.py [jsinterp] Disable comment support 2015-02-18 10:47:42 +01:00
test_YoutubeDL.py [YoutubeDL] urlopen: disable the 'file:' protocol (#8227) 2016-01-14 00:24:04 +01:00
testcert.pem