Skip to content

Commit

Permalink
use parse_url to drop query string before creating derivative filename (
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-shaw-asu authored Oct 11, 2023
1 parent fd2b04c commit eb1708e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Homarus/src/Controller/HomarusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eb1708e

Please sign in to comment.