mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 04:57:46 +02:00
fix(import): remove query string from files url
This commit is contained in:
parent
6a7d7c3021
commit
109c4aa1af
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ function download_file($fileUrl)
|
||||||
'_' .
|
'_' .
|
||||||
bin2hex(random_bytes(10)) .
|
bin2hex(random_bytes(10)) .
|
||||||
'.' .
|
'.' .
|
||||||
pathinfo($newFileUrl, PATHINFO_EXTENSION);
|
pathinfo(parse_url($newFileUrl, PHP_URL_PATH), PATHINFO_EXTENSION);
|
||||||
$tmpFilePath = WRITEPATH . 'uploads/' . $tmpFilename;
|
$tmpFilePath = WRITEPATH . 'uploads/' . $tmpFilename;
|
||||||
file_put_contents($tmpFilePath, $response->getBody());
|
file_put_contents($tmpFilePath, $response->getBody());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue