Compare commits

...
2 Commits
Author SHA1 Message Date
Kevin Mitchell a958fd2780 Release 0.27.2 2018-02-12 17:42:29 -08:00
Ricardo Constantino 408a65cf48 ytdl_hook: whitelist subtitle URLs as well
This was overlooked when doing the whitelisting for video and audio to
fix #5456.
2018-02-12 17:35:52 -08:00
3 changed files with 15 additions and 4 deletions

No files matched your search

+10 -1
View File
@@ -1,7 +1,16 @@
Release 0.27.2
==============
This release contains an additional fix for CVE-2018-6360.
Fixes and Minor Enhancements
----------------------------
- ytdl_hook: whitelist subtitle URLs as well (#5456)
Release 0.27.1
==============
This releaes fixes CVE-2018-6360.
This release fixes CVE-2018-6360.
Fixes and Minor Enhancements
----------------------------
+1 -1
View File
@@ -1 +1 @@
0.27.1
0.27.2
+4 -2
View File
@@ -270,7 +270,8 @@ local function add_single_video(json)
if not (sub_info.data == nil) then
sub = "memory://"..sub_info.data
elseif not (sub_info.url == nil) then
elseif not (sub_info.url == nil) and
url_is_safe(sub_info.url) then
sub = sub_info.url
end
@@ -468,7 +469,8 @@ mp.add_hook("on_load", 10, function ()
local subfile = "edl://"
for i, entry in pairs(json.entries) do
if not (entry.requested_subtitles == nil) and
not (entry.requested_subtitles[j] == nil) then
not (entry.requested_subtitles[j] == nil) and
url_is_safe(entry.requested_subtitles[j].url) then
subfile = subfile..edl_escape(entry.requested_subtitles[j].url)
else
subfile = subfile..edl_escape("memory://WEBVTT")