From 81bf761b0854b8f380e1b35acd220266e2b3f382 Mon Sep 17 00:00:00 2001 From: Seth Shaw <108362375+seth-shaw-asu@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:55:58 -0700 Subject: [PATCH] use parse_url to drop query string before creating derivative filename --- Homarus/src/Controller/HomarusController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.