Get only scheme part of URL

This commit is contained in:
Pierre Rudloff 2016-04-10 19:49:44 +02:00
parent 20ad5559be
commit 0ab0819abc

View file

@ -123,8 +123,7 @@ class FrontController
'user_agent',
$video->http_headers->{'User-Agent'}
);
$url_info = parse_url($video->url);
if ($url_info['scheme'] == 'rtmp') {
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
ob_end_flush();
header(
'Content-Disposition: attachment; filename="'.