Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
New changelog entry
· 3db598bf
James Cowgill
authored
Feb 08, 2018
3db598bf
Fix regression in CVE-2018-6360 patch which broke youtube playlists
· 8af5b608
James Cowgill
authored
Feb 08, 2018
Closes: #889892
8af5b608
Upload to stretch-security
· 96e932ec
James Cowgill
authored
Feb 08, 2018
96e932ec
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
96e932ec
mpv (0.23.0-2+deb9u2) stretch-security; urgency=high
* debian/patches/08_ytdl-hook-whitelist-protocols.patch:
- Fix regression in CVE-2018-6360 patch which broke youtube playlists.
(Closes: #889892)
-- James Cowgill <jcowgill@debian.org> Thu, 08 Feb 2018 12:27:06 +0000
mpv (0.23.0-2+deb9u1) stretch-security; urgency=high
* debian/patches/08_ytdl-hook-whitelist-protocols.patch:
...
...
debian/patches/08_ytdl-hook-whitelist-protocols.patch
View file @
96e932ec
...
...
@@ -10,6 +10,7 @@ Description: ytdl_hook: whitelist protocols from urls retrieved from youtube-dl
Author: Ricardo Constantino <wiiaboo@gmail.com>
Bug: https://github.com/mpv-player/mpv/issues/5456
Bug-Debian: https://bugs.debian.org/888654
Bug-Debian: https://bugs.debian.org/889892
Applied-Upstream: v0.29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
...
...
@@ -61,18 +62,20 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
playlist = playlist .. edl_escape(entry.url)
if not (entry.duration == nil) then
playlist = playlist..",start=0,length="..entry.duration
@@ -261,7 +285,
9
@@
mp.add_hook("on_load", 10, function ()
@@ -261,7 +285,
11
@@
mp.add_hook("on_load", 10, function ()
site = entry["webpage_url"]
end
- playlist = playlist .. "ytdl://" .. site .. "\n"
+ if
url_is_safe(site
) then
+ if
not site:find("://"
) then
+ playlist = playlist .. "ytdl://" .. site .. "\n"
+ elseif url_is_safe(site) then
+ playlist = playlist .. site .. "\n"
+ end
end
mp.set_property("stream-open-filename", "memory://" .. playlist)
@@ -279,14 +30
5
,24 @@
mp.add_hook("on_load", 10, function ()
@@ -279,14 +30
7
,24 @@
mp.add_hook("on_load", 10, function ()
-- video url
streamurl = json["requested_formats"][1].url
...
...