videoc: escape path

pull/221/head
Varun Patil 2022-11-09 12:59:55 -08:00
parent 593248b002
commit c85e8870b7
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ class VideoController extends ApiBase
private function getUpstream($path, $profile)
{
$path = rawurlencode($path);
$ch = curl_init("http://localhost:47788/vod/{$path}/{$profile}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);