diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index f1332cef..b06c97ae 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -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);