Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 1b099bb

Browse files
committed
Patch youtube-dl to disable redirects
In order to prevent SSRF attacks using redirects
1 parent 3a4f09d commit 1b099bb

File tree

3 files changed

+1088
-91
lines changed

3 files changed

+1088
-91
lines changed

composer.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"aura/session": "^2.1",
2626
"barracudanetworks/archivestream-php": "^1.0",
2727
"consolidation/log": "^2.0",
28+
"cweagans/composer-patches": "^1.7",
2829
"j0k3r/httplug-ssrf-plugin": "^2.0",
2930
"jawira/case-converter": "^3.4",
3031
"jean85/pretty-package-versions": "^1.3",
@@ -74,7 +75,12 @@
7475
},
7576
"installer-types": [
7677
"library"
77-
]
78+
],
79+
"patches": {
80+
"ytdl-org/youtube-dl": {
81+
"Disable redirects in generic extractor": "patches/youtube-dl-redirect.diff"
82+
}
83+
}
7884
},
7985
"autoload": {
8086
"psr-4": {

0 commit comments

Comments
 (0)