getURL() should not return an array
This commit is contained in:
parent
f7f0a7b7f4
commit
f14bec35ea
3 changed files with 13 additions and 11 deletions
|
@ -225,8 +225,8 @@ class FrontController
|
|||
global $app;
|
||||
if (isset($_GET["url"])) {
|
||||
try {
|
||||
$video = $this->download->getURL($_GET["url"]);
|
||||
return $response->withRedirect($video['url']);
|
||||
$url = $this->download->getURL($_GET["url"]);
|
||||
return $response->withRedirect($url);
|
||||
} catch (\Exception $e) {
|
||||
echo $e->getMessage().PHP_EOL;
|
||||
return $response->withHeader('Content-Type', 'text/plain');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue