videoc: escape path
parent
593248b002
commit
c85e8870b7
|
@ -124,6 +124,7 @@ class VideoController extends ApiBase
|
||||||
|
|
||||||
private function getUpstream($path, $profile)
|
private function getUpstream($path, $profile)
|
||||||
{
|
{
|
||||||
|
$path = rawurlencode($path);
|
||||||
$ch = curl_init("http://localhost:47788/vod/{$path}/{$profile}");
|
$ch = curl_init("http://localhost:47788/vod/{$path}/{$profile}");
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||||
|
|
Loading…
Reference in New Issue