diff --git a/Homarus/src/Controller/HomarusController.php b/Homarus/src/Controller/HomarusController.php index 3d671344..222df306 100644 --- a/Homarus/src/Controller/HomarusController.php +++ b/Homarus/src/Controller/HomarusController.php @@ -119,7 +119,7 @@ public function convert(Request $request) "faststart -y"; } - $temp_file_path = $this->tempDirectory . basename($source) . "." . $format; + $temp_file_path = $this->tempDirectory . basename(parse_url($source, PHP_URL_PATH)) . "." . $format; $this->log->debug('Tempfile: ' . $temp_file_path); // Arguments to ffmpeg command are sent as a custom header.